I would like to introduce unittest-fixtures. The
unittest-fixtures package is a
helper for the
unittest.TestCase class
that allows one to define fixtures as simple functions and declare them in
your TestCase using decorators.
The unittest-fixtures package is available now from PyPI.
The following is extracted from the project's README …