l.c.m.t.t.TestBranchDeletion(TestCaseWithFactory) : class documentation

Part of lp.code.model.tests.test_branch View In Hierarchy

Test the different cases that makes a branch deletable or not.
Method setUp Undocumented
Method test_deletable A newly created branch can be deleted without any problems.
Method test_stackedBranchDisablesDeletion Undocumented
Method test_subscriptionDoesntDisableDeletion A branch that has a subscription can be deleted.
Method test_codeImportCanStillBeDeleted A branch that has an attached code import can be deleted.
Method test_bugBranchLinkDisablesDeletion A branch linked to a bug cannot be deleted.
Method test_specBranchLinkDisablesDeletion A branch linked to a spec cannot be deleted.
Method test_associatedProductSeriesBranchDisablesDeletion A branch linked as a branch to a product series cannot be
Method test_productSeriesTranslationsBranchDisablesDeletion Undocumented
Method test_revisionsDeletable A branch that has some revisions can be deleted.
Method test_landingTargetDisablesDeletion A branch with a landing target cannot be deleted.
Method test_landingCandidateDisablesDeletion A branch with a landing candidate cannot be deleted.
Method test_prerequisiteBranchDisablesDeletion A branch that is a prerequisite branch cannot be deleted.
Method test_relatedBranchJobsDeleted Undocumented
Method test_linked_translations_branch_cleared Undocumented
Method test_related_TranslationTemplatesBuild_cleaned_out Undocumented
Method test_unrelated_TranslationTemplatesBuild_intact Undocumented
Method test_createsJobToReclaimSpace Undocumented
Method test_destroySelf_with_SourcePackageRecipe If branch is a base_branch in a recipe, it is deleted.
Method test_destroySelf_with_SourcePackageRecipe_as_non_base If branch is referred to by a recipe, it is deleted.
Method test_destroySelf_with_inline_comments_draft Undocumented
Method test_destroySelf_with_inline_comments_published Undocumented
Method test_related_webhooks_deleted Undocumented

Inherited from TestCaseWithFactory:

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 setUp(self):
Undocumented
def test_deletable(self):
A newly created branch can be deleted without any problems.
def test_stackedBranchDisablesDeletion(self):
Undocumented
def test_subscriptionDoesntDisableDeletion(self):
A branch that has a subscription can be deleted.
def test_codeImportCanStillBeDeleted(self):
A branch that has an attached code import can be deleted.
def test_bugBranchLinkDisablesDeletion(self):
A branch linked to a bug cannot be deleted.
def test_specBranchLinkDisablesDeletion(self):
A branch linked to a spec cannot be deleted.
def test_associatedProductSeriesBranchDisablesDeletion(self):
A branch linked as a branch to a product series cannot be deleted.
def test_productSeriesTranslationsBranchDisablesDeletion(self):
Undocumented
def test_revisionsDeletable(self):
A branch that has some revisions can be deleted.
def test_landingTargetDisablesDeletion(self):
A branch with a landing target cannot be deleted.
def test_landingCandidateDisablesDeletion(self):
A branch with a landing candidate cannot be deleted.
def test_prerequisiteBranchDisablesDeletion(self):
A branch that is a prerequisite branch cannot be deleted.
def test_relatedBranchJobsDeleted(self):
Undocumented
def test_linked_translations_branch_cleared(self):
Undocumented
def test_related_TranslationTemplatesBuild_cleaned_out(self):
Undocumented
def test_unrelated_TranslationTemplatesBuild_intact(self):
Undocumented
def test_createsJobToReclaimSpace(self):
Undocumented
def test_destroySelf_with_SourcePackageRecipe(self):
If branch is a base_branch in a recipe, it is deleted.
def test_destroySelf_with_SourcePackageRecipe_as_non_base(self):
If branch is referred to by a recipe, it is deleted.
def test_destroySelf_with_inline_comments_draft(self):
Undocumented
def test_destroySelf_with_inline_comments_published(self):
Undocumented
def test_related_webhooks_deleted(self):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2019-07-24 00:00:16.