Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

Rolling backport of unittest.mock for all Pythons

Project description

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 3.4 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)
Code:GitHub
Issue tracker:GitHub Issues
Build status:CircleCI Docs

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
mock-3.0.5-py2.py3-none-any.whl (25.0 kB) Copy SHA256 hash SHA256 Wheel py2.py3
mock-3.0.5.tar.gz (28.1 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page