Part of lp.code.model.tests.test_branch View In Hierarchy
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. |
Each branch related to the merge proposal is tested to ensure it produces a unique, correct result.