c.t.l.LibrarianLayer(BaseLayer) : class documentation

Part of canonical.testing.layers View In Hierarchy

Known subclasses: canonical.testing.layers.LaunchpadLayer

Provides tests access to a Librarian instance.

Calls to the Librarian will fail unless there is also a Launchpad database available.

Class Method setUp Undocumented
Class Method tearDown Undocumented
Class Method testSetUp Undocumented
Class Method testTearDown Undocumented
Class Method hide Hide the Librarian so nothing can find it. We don't want to
Class Method reveal Reveal a hidden Librarian.
Class Method _check_and_reset Raise an exception if the Librarian has been killed.

Inherited from BaseLayer:

Class Method check Check that the environment is working as expected.
Class Method flagTestIsolationFailure Handle a breakdown in test isolation.
Class Method getCurrentTestResult Return the TestResult currently in play.
Class Method getCurrentTestCase Return the test currently in play.
@classmethod
@profiled
def setUp(cls):
Undocumented
@classmethod
@profiled
def tearDown(cls):
Undocumented
@classmethod
@profiled
def _check_and_reset(cls):
Raise an exception if the Librarian has been killed. Reset the storage unless this has been disabled.
@classmethod
@profiled
def testSetUp(cls):
Undocumented
@classmethod
@profiled
def testTearDown(cls):
Undocumented
@classmethod
@profiled
def hide(cls):
Hide the Librarian so nothing can find it. We don't want to actually shut it down because starting it up again is expensive.

We do this by altering the configuration so the Librarian client looks for the Librarian server on the wrong port.

@classmethod
@profiled
def reveal(cls):
Reveal a hidden Librarian.

This just involves restoring the config to the original value.

API Documentation for Launchpad, generated by pydoctor at 2010-09-27 00:00:11.