l.t.b.t.t.TestSharingInfoMixin : class documentation

Part of lp.translations.browser.tests.test_sharing_information View In Hierarchy

Known subclasses: lp.translations.browser.tests.test_sharing_information.TestDummyPOFileSharingInfo, lp.translations.browser.tests.test_sharing_information.TestPOFileSharingInfo, lp.translations.browser.tests.test_sharing_information.TestUbuntuPOTemplateSharingInfo, lp.translations.browser.tests.test_sharing_information.TestUbuntuSharingInfo, lp.translations.browser.tests.test_sharing_information.TestUpstreamPOTemplateSharingInfo, lp.translations.browser.tests.test_sharing_information.TestUpstreamSharingInfo

Test display of sharing info.
Method makeNotSharingObject Create an object that is not sharing.
Method makeSharingObject Create an object that is sharing.
Method getAuthorizedUser Get a user that is authorized to edit sharing details on obj.
Method getAuthorizedUserForProductseries Get a user that has Edit rights on productseries.
Method test_not_sharing_info Undocumented
Method test_sharing_info Undocumented
Method _makePackagingAndTemplates Create a packaging links and the templates on each side of it.
Method _test_sharing_information Undocumented
def _makePackagingAndTemplates(self, side):
Create a packaging links and the templates on each side of it.

Returns the template for the requested side.

def makeNotSharingObject(self):
Create an object that is not sharing.
def makeSharingObject(self):
Create an object that is sharing.
def getAuthorizedUser(self, obj):
Get a user that is authorized to edit sharing details on obj.
def getAuthorizedUserForProductseries(self, productseries):
Get a user that has Edit rights on productseries.

If productseries is None, return an arbritrary user. Used by implementations of getAuthorizedUser.

def _test_sharing_information(self, obj, id_under_test, expected_text, authorized=False):
Undocumented
def test_not_sharing_info(self):
Undocumented
def test_sharing_info(self):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.