Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

mock is a library for testing in Python. It allows you to replace parts of your system under test with mock objects and make assertions about how they have been used.

mock is now part of the Python standard library, available as unittest.mock in Python 3.3 onwards.

This package contains a rolling backport of the standard library mock code compatible with Python 2.7 and up, and 3.2 and up.

Please see the standard library documentation for more details.

Homepage:

Mock Homepage

Download:

Mock on PyPI

Documentation:

Python Docs

License:

BSD License

Support:

Mailing list (testing-in-python@lists.idyll.org)

Issue tracker:

Github Issues

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page