Description
Provides helpers, mock objects, comparison tools, and fixtures for Python unit tests and doctests. It helps developers write tests for dates, files, logs, streams, and other behavior that otherwise takes repetitive setup.
Use it as a testing library. Test helpers can replace or patch runtime behavior, so keep tests isolated and restore state after each case.