FixtureCollection
returns a collection of Fixture instances, all attributes shared.
The FixtureCollection class is accessible via the testtools.fixtures.fixtures module.
accepts fixture instances as arguments, returns an instance with all attributes combined.
Methods
f assert_has(self, dataset, transkey=None, transval=None, quiet=False) ...
assert this fixture has a dataset somewhere in it.
fetching dataset items will be tried like: dataset.key and dataset[key]
Keyword arguments
- transkey -- dict called like: ''dataset_key = transkey[fixture_key]'' to match dataset items with fixture items
- quiet -- True if you don't want a big explanation of mismatches
f data(self) ...
hook for subclasses to return a data definition.
returns a tuple of tuples. see class signature for example of the format
See the source for more information.