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.
'$HeadURL: https://svn.testtools.python-hosting.com/tags/0.7.1/testtools/__init__.py $'
The testtools module exposes 7 submodules:
- tools for automatically triggering test suites.
- common configuration settings.
- exceptions used in testtools
- Provides tools to load and inspect test data.
- IO-related testing tools.
- Fixture storage media.
- Tools for replacing objects with stubs.
See the source for more information.