l.c.m.t.t.TestBranchDeletionConsequences(TestCase) : class documentation

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

Test determination and application of branch deletion consequences.
Method setUp Undocumented
Method test_plainBranch Ensure that a fresh branch has no deletion requirements.
Method makeMergeProposals Produce a merge proposal for testing purposes.
Method test_branchWithMergeProposal Ensure that deletion requirements with a merge proposal are right.
Method test_deleteMergeProposalSource Merge proposal source branches can be deleted with break_links.
Method test_deleteMergeProposalTarget Merge proposal target branches can be deleted with break_links.
Method test_deleteMergeProposalDependent break_links enables deleting merge proposal dependant branches.
Method test_deleteSourceCodeReviewComment Deletion of branches that have CodeReviewComments works.
Method test_deleteTargetCodeReviewComment Deletion of branches that have CodeReviewComments works.
Method test_branchWithBugRequirements Deletion requirements for a branch with a bug are right.
Method test_branchWithBugDeletion break_links allows deleting a branch with a bug.
Method test_branchWithSpecRequirements Deletion requirements for a branch with a spec are right.
Method test_branchWithSpecDeletion break_links allows deleting a branch with a spec.
Method test_branchWithSeriesRequirements Deletion requirements for a series' branch are right.
Method test_branchWithSeriesDeletion break_links allows deleting a series' branch.
Method test_official_package_requirements Undocumented
Method test_official_package_branch_deleted Undocumented
Method test_branchWithCodeImportRequirements Deletion requirements for a code import branch are right
Method test_branchWithCodeImportDeletion break_references allows deleting a code import branch.
Method test_sourceBranchWithCodeReviewVoteReference Break_references handles CodeReviewVoteReference source branch.
Method test_targetBranchWithCodeReviewVoteReference Break_references handles CodeReviewVoteReference target branch.
Method test_snap_requirements Undocumented
Method test_snap_deletion Undocumented
Method test_ClearDependentBranch ClearDependent.__call__ must clear the prerequisite branch.
Method test_ClearOfficialPackageBranch Undocumented
Method test_ClearSeriesBranch ClearSeriesBranch.__call__ must clear the user branch.
Method test_DeletionOperation DeletionOperation.__call__ is not implemented.
Method test_DeletionCallable DeletionCallable must invoke the callable.
Method test_DeleteCodeImport DeleteCodeImport.__call__ must delete the CodeImport.
Method test_deletionRequirements_with_SourcePackageRecipe Recipes are listed as deletion requirements.

Inherited from TestCase:

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_plainBranch(self):
Ensure that a fresh branch has no deletion requirements.
def makeMergeProposals(self):
Produce a merge proposal for testing purposes.
def test_branchWithMergeProposal(self):
Ensure that deletion requirements with a merge proposal are right.

Each branch related to the merge proposal is tested to ensure it produces a unique, correct result.

def test_deleteMergeProposalSource(self):
Merge proposal source branches can be deleted with break_links.
def test_deleteMergeProposalTarget(self):
Merge proposal target branches can be deleted with break_links.
def test_deleteMergeProposalDependent(self):
break_links enables deleting merge proposal dependant branches.
def test_deleteSourceCodeReviewComment(self):
Deletion of branches that have CodeReviewComments works.
def test_deleteTargetCodeReviewComment(self):
Deletion of branches that have CodeReviewComments works.
def test_branchWithBugRequirements(self):
Deletion requirements for a branch with a bug are right.
def test_branchWithBugDeletion(self):
break_links allows deleting a branch with a bug.
def test_branchWithSpecRequirements(self):
Deletion requirements for a branch with a spec are right.
def test_branchWithSpecDeletion(self):
break_links allows deleting a branch with a spec.
def test_branchWithSeriesRequirements(self):
Deletion requirements for a series' branch are right.
def test_branchWithSeriesDeletion(self):
break_links allows deleting a series' branch.
def test_official_package_requirements(self):
Undocumented
def test_official_package_branch_deleted(self):
Undocumented
def test_branchWithCodeImportRequirements(self):
Deletion requirements for a code import branch are right
def test_branchWithCodeImportDeletion(self):
break_references allows deleting a code import branch.
def test_sourceBranchWithCodeReviewVoteReference(self):
Break_references handles CodeReviewVoteReference source branch.
def test_targetBranchWithCodeReviewVoteReference(self):
Break_references handles CodeReviewVoteReference target branch.
def test_snap_requirements(self):
Undocumented
def test_snap_deletion(self):
Undocumented
def test_ClearDependentBranch(self):
ClearDependent.__call__ must clear the prerequisite branch.
def test_ClearOfficialPackageBranch(self):
Undocumented
def test_ClearSeriesBranch(self):
ClearSeriesBranch.__call__ must clear the user branch.
def test_DeletionOperation(self):
DeletionOperation.__call__ is not implemented.
def test_DeletionCallable(self):
DeletionCallable must invoke the callable.
def test_DeleteCodeImport(self):
DeleteCodeImport.__call__ must delete the CodeImport.
def test_deletionRequirements_with_SourcePackageRecipe(self):
Recipes are listed as deletion requirements.
API Documentation for Launchpad, generated by pydoctor at 2018-05-23 00:00:09.