testtools

Tools for controlling test environments.

This package came to life while developing real test suites for applications and libraries, so nothing has been added here that wasn't necessary for some task or another. Python is of course the ultimate testing tool.

In my own experience with testing, it pays to get as close to the real world as possible. I try to use stub or mock objects only as a last resort, for optimization, etc. Thus, the crux of this package is the fixtures module -- it provides the means to load mock data into a real database (or any storage medium).

Patches are welcome, preferably with tests ;) The current project is being trac'ed at http://testtools.python-hosting.com/

See docs on each individual module for examples and usage.


Attributes

a __repos_url__

'$HeadURL: https://svn.testtools.python-hosting.com/tags/0.7.1/testtools/__init__.py $'

Modules

The testtools module exposes 7 submodules:

bgtests
tools for automatically triggering test suites.
config
common configuration settings.
exceptions
exceptions used in testtools
fixtures
Provides tools to load and inspect test data.
io
IO-related testing tools.
storage
Fixture storage media.
stubs
Tools for replacing objects with stubs.

See the source for more information.