LoadMap
registry of loaded fixtures.
The LoadMap class is accessible via the testtools.fixtures.registry module.
loaded fixtures are registered by the class of their instance. If you subclass a fixture it would be considered a completely new fixture.
THOUGHTS: Do we need a way to explicitly say which class should be considered our key? I don't think so but if that's the case we could look for a custom __fixture_id__ attribute or something
Attributes
Methods
f is_registered(self, fixture=None, id=None) ...
return True if this fixture is registered as loaded
f unregister(self, fixture) ...
tell registry that this fixture has been unloaded (Fixture.clean()).
See the source for more information.