l.c.t.t.T.StubbedSafeBranchOpener(SafeBranchOpener) : class documentation

Part of lp.codehosting.tests.test_safe_open.TestSafeBranchOpenerCheckAndFollowBranchReference View In Hierarchy

SafeBranchOpener that provides canned answers.

We implement the methods we need to to be able to control all the inputs to the BranchMirrorer.checkSource method, which is what is being tested in this class.

Method __init__ Create a new SafeBranchOpener.
Method followReference Get the branch-reference value at the specified url.

Inherited from SafeBranchOpener:

Class Method install_hook Install the transformFallbackLocation hook.
Method checkAndFollowBranchReference Check URL (and possibly the referenced URL) for safety.
Class Method transformFallbackLocationHook Installed as the 'transform_fallback_location' Branch hook.
Method runWithTransformFallbackLocationHookInstalled Undocumented
Method open Open the Bazaar branch at url, first checking for safety.
Method _open_dir Simple BzrDir.open clone that only uses specific probers.
def __init__(self, references, policy):
Create a new SafeBranchOpener.
ParameterspolicyThe opener policy to use.
probersOptional list of probers to allow. Defaults to local and remote bzr probers.
def followReference(self, url):
Get the branch-reference value at the specified url.

This exists as a separate method only to be overridden in unit tests.

API Documentation for Launchpad, generated by pydoctor at 2019-07-09 00:00:06.