LoadMap

registry of loaded fixtures.

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

a registry

{}

Methods

f __init__(self) ...

f clear(self) ...

f populate(self, fixture) ...

populates fixture instance with loaded fixture.

returns fixture.

f is_registered(self, fixture=None, id=None) ...

return True if this fixture is registered as loaded

f register(self, fixture, id=None) ...

registers a fixture that has been loaded.

f update(self, fixture) ...

updates registered fixture's loaded data.

f unregister(self, fixture) ...

tell registry that this fixture has been unloaded (Fixture.clean()).

See the source for more information.