l.r.t.t.TestProduct(TestCaseWithFactory) : class documentation

Part of lp.registry.tests.test_product View In Hierarchy

Tests product object.
Method test_pillar_category Undocumented
Method test_implements_interfaces Undocumented
Method test_deactivation_failure Undocumented
Method test_deactivation_success Undocumented
Method test_milestone_sorting_getMilestonesAndReleases Undocumented
Method test_getTimeline_limit Undocumented
Method test_getVersionSortedSeries Undocumented
Method test_getVersionSortedSeries_with_specific_statuses Undocumented
Method test_getVersionSortedSeries_without_specific_statuses Undocumented
Method test_inferred_vcs VCS is inferred correctly from existing branch or repo.
Method test_owner_cannot_be_open_team Product owners cannot be open teams.
Method test_owner_can_be_closed_team Product owners can be exclusive teams.
Method test_product_creation_grants_maintainer_access Undocumented
Method test_open_product_creation_sharing_policies Undocumented
Method test_proprietary_product_creation_sharing_policies Undocumented
Method test_other_proprietary_product_creation_sharing_policies Undocumented
Method test_change_info_type_proprietary_check_artifacts Undocumented
Method test_change_info_type_proprietary_check_translations Undocumented
Method test_change_info_type_proprietary_sets_policies Undocumented
Method test_proprietary_to_public_leaves_policies Undocumented
Method test_cacheAccessPolicies Undocumented
Method test_checkInformationType_bug_supervisor Undocumented
Method test_checkInformationType_questions Undocumented
Method test_checkInformationType_translations Undocumented
Method test_checkInformationType_queued_translations Undocumented
Method test_checkInformationType_auto_translation_imports Undocumented
Method test_checkInformationType_series_only_bugs Undocumented
Method test_private_forbids_translations Undocumented
Method createProduct Undocumented
Method test_product_information_type Undocumented
Method test_switching_product_to_public_does_not_create_policy Undocumented
Method test_product_information_type_default Undocumented
Method test_product_information_type_init_invalid_values Undocumented
Method test_product_information_type_set_invalid_values Undocumented
Method test_set_proprietary_gets_commerical_subscription Undocumented
Method test_set_proprietary_fails_expired_commerical_subscription Undocumented
Method test_product_information_init_proprietary_requires_commercial Undocumented
Method test_no_answers_for_proprietary Undocumented
Method test_answers_for_public Undocumented
Method test_no_proprietary_if_answers Undocumented
Method test_no_proprietary_if_packaging Undocumented
Method test_get_permissions Undocumented
Method test_set_permissions Undocumented
Method test_access_launchpad_View_public_product Undocumented
Method test_access_launchpad_View_public_inactive_product Undocumented
Method test_access_launchpad_View_proprietary_product Undocumented
Method test_admin_launchpad_View_proprietary_product Undocumented
Method test_access_LimitedView_public_product Undocumented
Method test_access_LimitedView_proprietary_product Undocumented
Method test_access_launchpad_AnyAllowedPerson_public_product Undocumented
Method test_access_launchpad_AnyAllowedPerson_proprietary_product Undocumented
Method test_set_launchpad_AnyAllowedPerson_public_product Undocumented
Method test_set_launchpad_AnyAllowedPerson_proprietary_product Undocumented
Method test_userCanView_caches_known_users Undocumented
Method test_userCanView_works_with_IPersonRoles Undocumented
Method test_information_type_prevents_pruning Undocumented

Inherited from TestCaseWithFactory:

Method setUp Undocumented
Method getUserBrowser Return a Browser logged in as a fresh user, maybe opened at url.
Method getNonRedirectingBrowser Undocumented
Method createBranchAtURL Create a branch at the supplied URL.
Method create_branch_and_tree Create a database branch, bzr branch and bzr checkout.
Method createBzrBranch Create a bzr branch for a database branch.
Static Method getBranchPath Return the path of the branch in the mirrored area.
Method useTempBzrHome Undocumented
Method useBzrBranches Prepare for using bzr branches.

Inherited from TestCase (via TestCaseWithFactory):

Method becomeDbUser Commit, then log into the database as dbuser.
Method __str__ The string representation of a test is its id.
Method useContext Use the supplied context in this test.
Method makeTemporaryDirectory Create a temporary directory, and return its path.
Method installKarmaRecorder Set up and return a KarmaRecorder.
Method assertProvides Assert 'obj' correctly provides 'interface'.
Method assertNotifies Assert that a callable performs a given notification.
Method assertNoNotification Assert that no notifications are generated by the callable.
Method assertSqlAttributeEqualsDate Fail unless the value of the attribute is equal to the date.
Method assertTextMatchesExpressionIgnoreWhitespace Undocumented
Method assertIsInstance Assert that an instance is an instance of assert_class.
Method assertIsNot Assert that expected is not the same object as observed.
Method assertContentEqual Assert that 'iter1' has the same content as 'iter2'.
Method assertRaisesWithContent Check if the given exception is raised with given content.
Method assertBetween Assert that 'variable' is strictly between two boundaries.
Method assertVectorEqual Apply assertEqual to all given pairs in one go.
Method expectedLog Expect a log to be written that matches the regex.
Method pushConfig Push some key-value pairs into a section of the config.
Method attachOopses Undocumented
Method attachLibrarianLog Include the logChunks from fixture in the test details.
Method assertStatementCount Assert that the expected number of SQL statements occurred.
Method useTempDir Use a temporary directory for this test.
Method assertEmailHeadersEqual Assert that two email headers are equal.
Method assertStartsWith Undocumented
Method assertEndsWith Asserts that s ends with suffix.
Method checkPermissions Check if the used_permissions match expected_permissions.
Method assertEmailQueueLength Pop the email queue, assert its length, and return it.
Method _unfoldEmailHeader Unfold a multiline email header.
def test_pillar_category(self):
Undocumented
def test_implements_interfaces(self):
Undocumented
def test_deactivation_failure(self):
Undocumented
def test_deactivation_success(self):
Undocumented
def test_milestone_sorting_getMilestonesAndReleases(self):
Undocumented
def test_getTimeline_limit(self):
Undocumented
def test_getVersionSortedSeries(self):
Undocumented
def test_getVersionSortedSeries_with_specific_statuses(self):
Undocumented
def test_getVersionSortedSeries_without_specific_statuses(self):
Undocumented
def test_inferred_vcs(self):
VCS is inferred correctly from existing branch or repo.
def test_owner_cannot_be_open_team(self):
Product owners cannot be open teams.
def test_owner_can_be_closed_team(self):
Product owners can be exclusive teams.
def test_product_creation_grants_maintainer_access(self):
Undocumented
def test_open_product_creation_sharing_policies(self):
Undocumented
def test_proprietary_product_creation_sharing_policies(self):
Undocumented
def test_other_proprietary_product_creation_sharing_policies(self):
Undocumented
def test_change_info_type_proprietary_check_artifacts(self):
Undocumented
def test_change_info_type_proprietary_check_translations(self):
Undocumented
def test_change_info_type_proprietary_sets_policies(self):
Undocumented
def test_proprietary_to_public_leaves_policies(self):
Undocumented
def test_cacheAccessPolicies(self):
Undocumented
def test_checkInformationType_bug_supervisor(self):
Undocumented
def test_checkInformationType_questions(self):
Undocumented
def test_checkInformationType_translations(self):
Undocumented
def test_checkInformationType_queued_translations(self):
Undocumented
def test_checkInformationType_auto_translation_imports(self):
Undocumented
def test_checkInformationType_series_only_bugs(self):
Undocumented
def test_private_forbids_translations(self):
Undocumented
def createProduct(self, information_type=None, license=None):
Undocumented
def test_product_information_type(self):
Undocumented
def test_switching_product_to_public_does_not_create_policy(self):
Undocumented
def test_product_information_type_default(self):
Undocumented
def test_product_information_type_init_invalid_values(self):
Undocumented
def test_product_information_type_set_invalid_values(self):
Undocumented
def test_set_proprietary_gets_commerical_subscription(self):
Undocumented
def test_set_proprietary_fails_expired_commerical_subscription(self):
Undocumented
def test_product_information_init_proprietary_requires_commercial(self):
Undocumented
def test_no_answers_for_proprietary(self):
Undocumented
def test_answers_for_public(self):
Undocumented
def test_no_proprietary_if_answers(self):
Undocumented
def test_no_proprietary_if_packaging(self):
Undocumented
def test_get_permissions(self):
Undocumented
def test_set_permissions(self):
Undocumented
def test_access_launchpad_View_public_product(self):
Undocumented
def test_access_launchpad_View_public_inactive_product(self):
Undocumented
def test_access_launchpad_View_proprietary_product(self):
Undocumented
def test_admin_launchpad_View_proprietary_product(self):
Undocumented
def test_access_LimitedView_public_product(self):
Undocumented
def test_access_LimitedView_proprietary_product(self):
Undocumented
def test_access_launchpad_AnyAllowedPerson_public_product(self):
Undocumented
def test_access_launchpad_AnyAllowedPerson_proprietary_product(self):
Undocumented
def test_set_launchpad_AnyAllowedPerson_public_product(self):
Undocumented
def test_set_launchpad_AnyAllowedPerson_proprietary_product(self):
Undocumented
def test_userCanView_caches_known_users(self):
Undocumented
def test_userCanView_works_with_IPersonRoles(self):
Undocumented
def test_information_type_prevents_pruning(self):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2019-07-21 00:00:04.