l.c.x.t.t.TestExpandURL(TestCaseWithFactory) : class documentation

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

Test the way that URLs are expanded.
Method makeProdutWithTrunk Make a new project with a trunk hosted branch.
Method assertResolves Assert that lp_url_path resolves to the specified paths.
Method assertOnlyWritableResolves Only the bzr+ssh url is returned.
Method assertFault Trying to resolve lp_url_path raises the expected fault.
Method test_resultDict Undocumented
Method test_resultDictForHotProduct Undocumented
Method test_product_only Undocumented
Method test_product_explicit_dev_series Undocumented
Method test_target_doesnt_exist Undocumented
Method test_product_and_series Undocumented
Method test_development_focus_has_no_branch Undocumented
Method test_series_has_no_branch Undocumented
Method test_no_such_product_series_non_ascii Undocumented
Method test_branch Undocumented
Method test_trunk_accessed_as_branch Undocumented
Method test_mirrored_branch Undocumented
Method test_no_such_branch_product Undocumented
Method test_no_such_branch_product_non_ascii Undocumented
Method test_no_such_branch_personal Undocumented
Method test_no_such_branch_package Undocumented
Method test_resolve_branch_with_no_such_product Undocumented
Method test_resolve_branch_with_no_such_owner Undocumented
Method test_resolve_branch_with_no_such_owner_non_ascii Undocumented
Method test_too_many_segments Undocumented
Method test_too_many_segments_no_such_branch Undocumented
Method test_empty_path Undocumented
Method test_too_short Undocumented
Method test_all_slashes Undocumented
Method test_trailing_slashes Undocumented
Method test_private_branch Undocumented
Method test_private_branch_on_series Undocumented
Method test_private_branch_as_development_focus Undocumented
Method test_private_branch_as_user Undocumented
Method test_remote_branch Undocumented
Method test_remote_branch_no_url Undocumented

Inherited from TestCaseWithFactory:

Method setUp Undocumented
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 makeProdutWithTrunk(self):
Make a new project with a trunk hosted branch.
def assertResolves(self, lp_url_path, public_branch_path, lp_path=None):
Assert that lp_url_path resolves to the specified paths.
Parameterspublic_branch_pathThe path that is accessible over http.
lp_pathThe short branch alias that will be resolved over bzr+ssh. The branch alias prefix is prefixed to this path. If it is not set, the bzr+ssh resolved name will be checked against the public_branch_path instead.
def assertOnlyWritableResolves(self, lp_url_path):
Only the bzr+ssh url is returned.
def assertFault(self, lp_url_path, expected_fault):
Trying to resolve lp_url_path raises the expected fault.
def test_resultDict(self):
Undocumented
def test_resultDictForHotProduct(self):
Undocumented
def test_product_only(self):
Undocumented
def test_product_explicit_dev_series(self):
Undocumented
def test_target_doesnt_exist(self):
Undocumented
def test_product_and_series(self):
Undocumented
def test_development_focus_has_no_branch(self):
Undocumented
def test_series_has_no_branch(self):
Undocumented
def test_no_such_product_series_non_ascii(self):
Undocumented
def test_branch(self):
Undocumented
def test_trunk_accessed_as_branch(self):
Undocumented
def test_mirrored_branch(self):
Undocumented
def test_no_such_branch_product(self):
Undocumented
def test_no_such_branch_product_non_ascii(self):
Undocumented
def test_no_such_branch_personal(self):
Undocumented
def test_no_such_branch_package(self):
Undocumented
def test_resolve_branch_with_no_such_product(self):
Undocumented
def test_resolve_branch_with_no_such_owner(self):
Undocumented
def test_resolve_branch_with_no_such_owner_non_ascii(self):
Undocumented
def test_too_many_segments(self):
Undocumented
def test_too_many_segments_no_such_branch(self):
Undocumented
def test_empty_path(self):
Undocumented
def test_too_short(self):
Undocumented
def test_all_slashes(self):
Undocumented
def test_trailing_slashes(self):
Undocumented
def test_private_branch(self):
Undocumented
def test_private_branch_on_series(self):
Undocumented
def test_private_branch_as_development_focus(self):
Undocumented
def test_private_branch_as_user(self):
Undocumented
def test_remote_branch(self):
Undocumented
def test_remote_branch_no_url(self):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2020-01-25 00:00:13.