CsvFixture
Fixture storable as a CSV file.
The CsvFixture class is accessible via the testtools.fixtures module.
The following are attributes you can set as keywords or meta attributes (see Fixture for examples on configuring a class using meta)
- addfields -- if True first row in the CSV file will contain a field list
- data -- dataset(s) to load (see Fixture for format)
- encoding -- string encoding to use when writing to file
- fields -- field list
- filename -- name of file or filelike object
Methods
See the source for more information.