Part of lp.code.xmlrpc.tests.test_codehosting View In Hierarchy
A 'frontend' here means something that provides access to the various XML-RPC endpoints, object factories and 'database' methods needed to write unit tests for XML-RPC endpoints.
All of these methods are gathered together in this class so that
alternative implementations can be provided, see
|Method||getCodehostingEndpoint||Return the branch filesystem endpoint for testing.|
|Method||getLaunchpadObjectFactory||Return the Launchpad object factory for testing.|
|Method||getBranchLookup||Return an implementation of
|Method||getLastActivity||Get the last script activity with 'activity_name'.|
Tests should use this to get the branch set they need, rather than using 'getUtility(IBranchSet)'. This allows in-memory implementations to work correctly.