Part of lp.codehosting.vfs.tests.test_transport View In Hierarchy
See the comment in _transportFactory
about what we actually test and
TestLaunchpadTransportImplementation
for the actual TestCase class.
Method | __init__ | Initialize the server. |
Method | get_bogus_url | Undocumented |
Method | tearDown | See LaunchpadInternalServer.tearDown . |
Method | _transportFactory | See LaunchpadInternalServer._transportFactory . |
Inherited from LaunchpadInternalServer:
Method | start_server | See Server.start_server. |
Method | destroy | Delete the on-disk branches and tear down. |
Inherited from _BaseLaunchpadServer (via LaunchpadInternalServer):
Method | translateVirtualPath | See AsyncVirtualServer.translateVirtualPath . |
Inherited from AsyncVirtualServer (via LaunchpadInternalServer, _BaseLaunchpadServer):
Method | get_url | Return the URL of this server. |
Method | stop_server | See Server.stop_server. |
We register ourselves with the scheme lp-testing=${id(self)}:/// using an in-memory XML-RPC client and backed onto a LocalTransport.
LaunchpadInternalServer._transportFactory
.
As LaunchpadTransport
'acts all kinds of crazy' above the .bzr
directory of a branch (forbidding file or directory creation at some
levels, enforcing naming restrictions at others), we test a
LaunchpadTransport chrooted into the .bzr directory of a branch.