l.c.c.t.t.TestBazaarBranchStore(WorkerTest) : class documentation

Part of lp.codehosting.codeimport.tests.test_worker View In Hierarchy

Tests for BazaarBranchStore.
Method setUp Undocumented
Method makeBranchStore Undocumented
Method test_defaultStore Undocumented
Method test__getMirrorURL Undocumented
Method test__getMirrorURL_push Undocumented
Method test_getNewBranch Undocumented
Method test_getNewBranch_without_tree Undocumented
Method test_getNewBranch_with_tree Undocumented
Method test_pushBranchThenPull Undocumented
Method test_pull_without_needs_tree_doesnt_create_tree Undocumented
Method test_pull_needs_tree_creates_tree Undocumented
Method test_pullUpgradesFormat Undocumented
Method test_pushUpgradesFormat Undocumented
Method test_pushTwiceThenPull Undocumented
Method test_push_divergant_branches Undocumented
Method fetchBranch Pull a branch from from_url to target_path.
Method test_makesDirectories Undocumented
Method test_storedLocation Undocumented
Method test_sftpPrefix Undocumented
Method test_sftpPrefixNoSlash Undocumented
Method test_all_revisions_saved Undocumented
Method test_pull_doesnt_bring_backup_directories Undocumented

Inherited from WorkerTest:

Method assertDirectoryTreesEqual Assert that directory1 has the same structure as directory2.
Method makeTemporaryDirectory Create a temporary directory, and return its path.

Inherited from TestCase (via WorkerTest):

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 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 makeBranchStore(self):
Undocumented
def test_defaultStore(self):
Undocumented
def test__getMirrorURL(self):
Undocumented
def test__getMirrorURL_push(self):
Undocumented
def test_getNewBranch(self):
Undocumented
def test_getNewBranch_without_tree(self):
Undocumented
def test_getNewBranch_with_tree(self):
Undocumented
def test_pushBranchThenPull(self):
Undocumented
def test_pull_without_needs_tree_doesnt_create_tree(self):
Undocumented
def test_pull_needs_tree_creates_tree(self):
Undocumented
def test_pullUpgradesFormat(self):
Undocumented
def test_pushUpgradesFormat(self):
Undocumented
def test_pushTwiceThenPull(self):
Undocumented
def test_push_divergant_branches(self):
Undocumented
def fetchBranch(self, from_url, target_path):
Pull a branch from from_url to target_path.

This uses the Bazaar API for pulling a branch, and is used to test that push indeed pushes a branch to a specific location.

ReturnsThe working tree of the branch.
def test_makesDirectories(self):
Undocumented
def test_storedLocation(self):
Undocumented
def test_sftpPrefix(self):
Undocumented
def test_sftpPrefixNoSlash(self):
Undocumented
def test_all_revisions_saved(self):
Undocumented
def test_pull_doesnt_bring_backup_directories(self):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2018-10-17 00:00:11.