l.c.v.t.t.LaunchpadTransportTests : class documentation

Part of lp.codehosting.vfs.tests.test_branchfs View In Hierarchy

Known subclasses: lp.codehosting.vfs.tests.test_branchfs.TestLaunchpadTransportAsync, lp.codehosting.vfs.tests.test_branchfs.TestLaunchpadTransportSync

Tests for a Launchpad transport.

These tests are expected to run against two kinds of transport.
  1. An asynchronous one that returns Deferreds.
  2. A synchronous one that returns actual values.

To support that, subclasses must implement getTransport and _ensureDeferred. See these methods for more information.

Method setUp Undocumented
Method assertFiresFailure Assert that calling function will cause exception to be fired.
Method assertFiresFailureWithSubstring Assert that calling function(*args, **kw) fails in a certain way.
Method getServer Undocumented
Method getTransport Return the transport to be tested.
Method test_get_transport Undocumented
Method test_cant_write_to_control_conf Undocumented
Method test_get_mapped_file Undocumented
Method test_get_mapped_file_escaped_url Undocumented
Method test_readv_mapped_file Undocumented
Method test_put_mapped_file Undocumented
Method test_cloning_updates_base Undocumented
Method test_abspath_without_schema Undocumented
Method test_cloning_preserves_path_mapping Undocumented
Method test_abspath Undocumented
Method test_incomplete_path_not_found Undocumented
Method test_complete_non_existent_path_not_found Undocumented
Method test_rename Undocumented
Method test_iter_files_recursive Undocumented
Method test_make_two_directories Undocumented
Method test_createBranch_not_found_error Undocumented
Method test_createBranch_permission_denied_error Undocumented
Method test_createBranch_invalid_package_name Undocumented
Method test_rmdir Undocumented
Method _ensureDeferred Call function and return an appropriate Deferred.
Method _makeOnBackingTransport Make directories for 'branch' on the backing transport.
def setUp(self):
Undocumented
def assertFiresFailure(self, exception, function, *args, **kwargs):
Assert that calling function will cause exception to be fired.

In the synchronous tests, this means that function raises exception. In the asynchronous tests, function returns a Deferred that fires exception as a Failure.

ReturnsA Deferred. You must return this from your test.
def assertFiresFailureWithSubstring(self, exc_type, msg, function, *args, **kw):
Assert that calling function(*args, **kw) fails in a certain way.

This method is like assertFiresFailure() but in addition checks that
'msg' is a substring of the str() of the raised exception.
def _ensureDeferred(self, function, *args, **kwargs):
Call function and return an appropriate Deferred.
def getServer(self, codehosting_api, user_id, backing_transport):
Undocumented
def getTransport(self):
Return the transport to be tested.
def test_get_transport(self):
Undocumented
def test_cant_write_to_control_conf(self):
Undocumented
def _makeOnBackingTransport(self, branch):
Make directories for 'branch' on the backing transport.
Returnsa transport for the .bzr directory of 'branch'.
def test_get_mapped_file(self):
Undocumented
def test_get_mapped_file_escaped_url(self):
Undocumented
def test_readv_mapped_file(self):
Undocumented
def test_put_mapped_file(self):
Undocumented
def test_cloning_updates_base(self):
Undocumented
def test_abspath_without_schema(self):
Undocumented
def test_cloning_preserves_path_mapping(self):
Undocumented
def test_abspath(self):
Undocumented
def test_incomplete_path_not_found(self):
Undocumented
def test_complete_non_existent_path_not_found(self):
Undocumented
def test_rename(self):
Undocumented
def test_iter_files_recursive(self):
Undocumented
def test_make_two_directories(self):
Undocumented
def test_createBranch_not_found_error(self):
Undocumented
def test_createBranch_permission_denied_error(self):
Undocumented
def test_createBranch_invalid_package_name(self):
Undocumented
def test_rmdir(self):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2019-08-22 00:00:19.