Fixture utilties.
Bases: object
A mixin to use with unittest.TestCase.
Upon setUp() the TestCase will load the DataSet classes using your Fixture, specified in class variables. At tearDown(), all loaded data will be removed. During your test, you will have self.data, a SuperSet instance to reference loaded data
Class Attributes:
A nose decorator calls start_debug() / start_debug() before and after the decorated method.
All positional arguments are considered channels that should be debugged. Keyword arguments are passed to start_debug()
Resets the level on all fixture logs.
You may need to call this when other applications reset the root logger’s log level.
Calling this with no args sets all logs to logging.CRITICAL which should keep them quiet
Added in version 1.1
A shortcut to start logging a channel to a stream.
For example:
>>> from fixture.util import start_debug, stop_debug
>>> start_debug("fixture.loadable")
starts logging messages from the fixture.loadable channel to the stream. Then...
>>> stop_debug("fixture.loadable")
...turns it off.
Available Channels:
Keyword Arguments:
Note
Other applications might add a handler to the root logger, in which case you can’t turn off debug output without messing with the root logger.