affix

returns a collection of Fixture instances, all attributes shared.

accepts fixture instances as arguments, returns an instance with all attributes combined.


Methods

f add_fixture(self, fixture) ...

merges attributes from another fixture into self.

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

f items(self) ...

yields (fixture_key, fixture) in self.

f __init__(self, *fixtures) ...

f __len__(self) ...

f clean(self, cascade=True) ...

f close(self) ...

f load(self, *arg, **kw) ...

See the source for more information.