l.c.x.t.t.CodehostingTest(WithScenarios, TestCaseWithFactory) : class documentation

Part of lp.code.xmlrpc.tests.test_codehosting View In Hierarchy

Tests for the implementation of ICodehostingAPI.
Instance VariablesfrontendA nullary callable that returns an object that implements getCodehostingEndpoint, getLaunchpadObjectFactory and getBranchLookup.
Method setUp Undocumented
Method assertMirrorFailed Assert that branch failed to mirror.
Method assertUnmirrored Assert that branch has not yet been mirrored.
Method getUnusedBranchID Return a branch ID that isn't in the database.
Method test_mirrorFailed Undocumented
Method test_mirrorFailedWithNotBranchID Undocumented
Method test_recordSuccess Undocumented
Method test_createBranch Undocumented
Method test_createBranch_no_preceding_slash Undocumented
Method test_createBranch_junk Undocumented
Method test_createBranch_team_junk Undocumented
Method test_createBranch_bad_product Undocumented
Method test_createBranch_invalid_product Undocumented
Method test_createBranch_other_user Undocumented
Method test_createBranch_bad_name Undocumented
Method test_createBranch_unicode_name Undocumented
Method test_createBranch_bad_user Undocumented
Method test_createBranch_bad_user_bad_product Undocumented
Method test_createBranch_not_branch Undocumented
Method test_createBranch_source_package Undocumented
Method test_createBranch_invalid_distro Undocumented
Method test_createBranch_invalid_distroseries Undocumented
Method test_createBranch_missing_sourcepackagename Undocumented
Method test_createBranch_invalid_sourcepackagename Undocumented
Method test_createBranch_using_branch_alias Undocumented
Method test_createBranch_using_branch_alias_then_lookup Undocumented
Method test_createBranch_using_branch_alias_product Undocumented
Method test_createBranch_using_branch_alias_product_then_lookup Undocumented
Method test_createBranch_using_branch_alias_product_not_auth Undocumented
Method test_createBranch_using_branch_alias_product_not_exist Undocumented
Method test_createBranch_using_branch_alias_productseries Undocumented
Method test_createBranch_using_branch_alias_productseries_not_auth Undocumented
Method test_createBranch_using_branch_alias_productseries_not_exist Undocumented
Method test_requestMirror Undocumented
Method test_requestMirror_private Undocumented
Method getFormatStringsForFormatName Undocumented
Method arbitrary_format_strings Undocumented
Method test_branchChanged_sets_last_mirrored_id Undocumented
Method test_branchChanged_with_LAUNCHPAD_SERVICES Undocumented
Method test_branchChanged_fault_on_unknown_id Undocumented
Method test_branchChanged_2a_format Undocumented
Method test_branchChanged_packs_format Undocumented
Method test_branchChanged_knits_format Undocumented
Method assertNotFound Assert that the given path cannot be found.
Method assertPermissionDenied Assert that looking at the given path gives permission denied.
Method test_translatePath_cannot_translate Undocumented
Method test_translatePath_no_preceding_slash Undocumented
Method test_translatePath_branch Undocumented
Method test_translatePath_branch_with_trailing_slash Undocumented
Method test_translatePath_path_in_branch Undocumented
Method test_translatePath_nested_path_in_branch Undocumented
Method test_translatePath_preserves_escaping Undocumented
Method test_translatePath_no_such_junk_branch Undocumented
Method test_translatePath_branches_in_parent_dirs_not_found Undocumented
Method test_translatePath_branches_in_private_parent_dirs_not_found Undocumented
Method test_translatePath_private_project Undocumented
Method test_translatePath_no_such_branch Undocumented
Method test_translatePath_no_such_branch_non_ascii Undocumented
Method test_translatePath_private_branch Undocumented
Method test_translatePath_cant_see_private_branch Undocumented
Method test_translatePath_remote_branch Undocumented
Method test_translatePath_launchpad_services_private Undocumented
Method test_translatePath_anonymous_cant_see_private_branch Undocumented
Method test_translatePath_anonymous_public_branch Undocumented
Method test_translatePath_owned Undocumented
Method test_translatePath_team_owned Undocumented
Method test_translatePath_team_unowned Undocumented
Method test_translatePath_owned_mirrored Undocumented
Method test_translatePath_owned_imported Undocumented
Method test_translatePath_branch_alias_short_name Undocumented
Method test_translatePath_branch_alias_unique_name Undocumented
Method test_translatePath_branch_alias_no_such_branch Undocumented
Method test_translatePath_branch_alias_no_such_person Undocumented
Method test_translatePath_branch_alias_no_such_product Undocumented
Method test_translatePath_branch_alias_no_such_distro Undocumented
Method test_translatePath_branch_alias_no_such_distroseries Undocumented
Method test_translatePath_branch_alias_no_such_sourcepackagename Undocumented
Method test_translatePath_branch_alias_product_with_no_branch Undocumented
Method test_translatePath_branch_alias_no_linked_sourcepackage_branch Undocumented
Method test_translatePath_branch_alias_invalid_product_name Undocumented
Method test_translatePath_branch_alias_bzrdir_content Undocumented
Method test_translatePath_branch_alias_bzrdir Undocumented
Method test_translatePath_branch_id_alias_bzrdir_content Undocumented
Method test_translatePath_branch_id_alias_bzrdir Undocumented
Method test_translatePath_branch_id_alias_trailing Undocumented
Method test_translatePath_branch_id_alias_owned Undocumented
Method test_translatePath_branch_id_alias_private_branch Undocumented
Method test_translatePath_branch_id_alias_private_branch_no_access Undocumented
Method assertTranslationIsControlDirectory Assert that 'translation' points to the right control transport.
Method test_translatePath_control_directory Undocumented
Method test_translatePath_control_directory_no_stacked_set Undocumented
Method test_translatePath_control_directory_invisble_branch Undocumented
Method test_translatePath_control_directory_private_branch Undocumented
Method test_translatePath_control_directory_other_owner Undocumented
Method test_translatePath_control_directory_package_no_focus Undocumented
Method test_translatePath_control_directory_package Undocumented
Method _makeProductWithDevFocus Make a stacking-enabled product with a development focus.

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 assertMirrorFailed(self, branch, failure_message, num_failures=1):
Assert that branch failed to mirror.
ParametersbranchThe branch that failed to mirror.
failure_messageThe last message that the branch failed with.
num_failuresThe number of times this branch has failed to mirror. Defaults to one.
def assertUnmirrored(self, branch):
Assert that branch has not yet been mirrored.

Asserts that last_mirror_attempt, last_mirrored and mirror_status_message are all None, and that mirror_failures is 0.

def getUnusedBranchID(self):
Return a branch ID that isn't in the database.
def test_mirrorFailed(self):
Undocumented
def test_mirrorFailedWithNotBranchID(self):
Undocumented
def test_recordSuccess(self):
Undocumented
def test_createBranch(self):
Undocumented
def test_createBranch_no_preceding_slash(self):
Undocumented
def test_createBranch_junk(self):
Undocumented
def test_createBranch_team_junk(self):
Undocumented
def test_createBranch_bad_product(self):
Undocumented
def test_createBranch_invalid_product(self):
Undocumented
def test_createBranch_other_user(self):
Undocumented
def test_createBranch_bad_name(self):
Undocumented
def test_createBranch_unicode_name(self):
Undocumented
def test_createBranch_bad_user(self):
Undocumented
def test_createBranch_bad_user_bad_product(self):
Undocumented
def test_createBranch_not_branch(self):
Undocumented
def test_createBranch_source_package(self):
Undocumented
def test_createBranch_invalid_distro(self):
Undocumented
def test_createBranch_invalid_distroseries(self):
Undocumented
def test_createBranch_missing_sourcepackagename(self):
Undocumented
def test_createBranch_invalid_sourcepackagename(self):
Undocumented
def test_createBranch_using_branch_alias(self):
Undocumented
def test_createBranch_using_branch_alias_then_lookup(self):
Undocumented
def test_createBranch_using_branch_alias_product(self):
Undocumented
def test_createBranch_using_branch_alias_product_then_lookup(self):
Undocumented
def test_createBranch_using_branch_alias_product_not_auth(self):
Undocumented
def test_createBranch_using_branch_alias_product_not_exist(self):
Undocumented
def test_createBranch_using_branch_alias_productseries(self):
Undocumented
def test_createBranch_using_branch_alias_productseries_not_auth(self):
Undocumented
def test_createBranch_using_branch_alias_productseries_not_exist(self):
Undocumented
def test_requestMirror(self):
Undocumented
def test_requestMirror_private(self):
Undocumented
def getFormatStringsForFormatName(self, format_name):
Undocumented
@property
def arbitrary_format_strings(self):
Undocumented
def test_branchChanged_sets_last_mirrored_id(self):
Undocumented
def test_branchChanged_with_LAUNCHPAD_SERVICES(self):
Undocumented
def test_branchChanged_fault_on_unknown_id(self):
Undocumented
def test_branchChanged_2a_format(self):
Undocumented
def test_branchChanged_packs_format(self):
Undocumented
def test_branchChanged_knits_format(self):
Undocumented
def assertNotFound(self, requester, path):
Assert that the given path cannot be found.
def assertPermissionDenied(self, requester, path):
Assert that looking at the given path gives permission denied.
def _makeProductWithDevFocus(self, private=False):
Make a stacking-enabled product with a development focus.
ParametersprivateWhether the development focus branch should be private.
ReturnsThe new Product and the new Branch.
def test_translatePath_cannot_translate(self):
Undocumented
def test_translatePath_no_preceding_slash(self):
Undocumented
def test_translatePath_branch(self):
Undocumented
def test_translatePath_branch_with_trailing_slash(self):
Undocumented
def test_translatePath_path_in_branch(self):
Undocumented
def test_translatePath_nested_path_in_branch(self):
Undocumented
def test_translatePath_preserves_escaping(self):
Undocumented
def test_translatePath_no_such_junk_branch(self):
Undocumented
def test_translatePath_branches_in_parent_dirs_not_found(self):
Undocumented
def test_translatePath_branches_in_private_parent_dirs_not_found(self):
Undocumented
def test_translatePath_private_project(self):
Undocumented
def test_translatePath_no_such_branch(self):
Undocumented
def test_translatePath_no_such_branch_non_ascii(self):
Undocumented
def test_translatePath_private_branch(self):
Undocumented
def test_translatePath_cant_see_private_branch(self):
Undocumented
def test_translatePath_remote_branch(self):
Undocumented
def test_translatePath_launchpad_services_private(self):
Undocumented
def test_translatePath_anonymous_cant_see_private_branch(self):
Undocumented
def test_translatePath_anonymous_public_branch(self):
Undocumented
def test_translatePath_owned(self):
Undocumented
def test_translatePath_team_owned(self):
Undocumented
def test_translatePath_team_unowned(self):
Undocumented
def test_translatePath_owned_mirrored(self):
Undocumented
def test_translatePath_owned_imported(self):
Undocumented
def test_translatePath_branch_alias_short_name(self):
Undocumented
def test_translatePath_branch_alias_unique_name(self):
Undocumented
def test_translatePath_branch_alias_no_such_branch(self):
Undocumented
def test_translatePath_branch_alias_no_such_person(self):
Undocumented
def test_translatePath_branch_alias_no_such_product(self):
Undocumented
def test_translatePath_branch_alias_no_such_distro(self):
Undocumented
def test_translatePath_branch_alias_no_such_distroseries(self):
Undocumented
def test_translatePath_branch_alias_no_such_sourcepackagename(self):
Undocumented
def test_translatePath_branch_alias_product_with_no_branch(self):
Undocumented
def test_translatePath_branch_alias_no_linked_sourcepackage_branch(self):
Undocumented
def test_translatePath_branch_alias_invalid_product_name(self):
Undocumented
def test_translatePath_branch_alias_bzrdir_content(self):
Undocumented
def test_translatePath_branch_alias_bzrdir(self):
Undocumented
def test_translatePath_branch_id_alias_bzrdir_content(self):
Undocumented
def test_translatePath_branch_id_alias_bzrdir(self):
Undocumented
def test_translatePath_branch_id_alias_trailing(self):
Undocumented
def test_translatePath_branch_id_alias_owned(self):
Undocumented
def test_translatePath_branch_id_alias_private_branch(self):
Undocumented
def test_translatePath_branch_id_alias_private_branch_no_access(self):
Undocumented
def assertTranslationIsControlDirectory(self, translation, default_stacked_on, trailing_path):
Assert that 'translation' points to the right control transport.
def test_translatePath_control_directory(self):
Undocumented
def test_translatePath_control_directory_no_stacked_set(self):
Undocumented
def test_translatePath_control_directory_invisble_branch(self):
Undocumented
def test_translatePath_control_directory_private_branch(self):
Undocumented
def test_translatePath_control_directory_other_owner(self):
Undocumented
def test_translatePath_control_directory_package_no_focus(self):
Undocumented
def test_translatePath_control_directory_package(self):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.