Skip to main content

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

Build status:
https://travis-ci.org/testing-cabal/mock.svg?branch=master

Download files

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

Source Distribution

mock-1.1.3.tar.gz (70.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mock-1.1.3-py2.py3-none-any.whl (55.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file mock-1.1.3.tar.gz.

File metadata

  • Download URL: mock-1.1.3.tar.gz
  • Upload date:
  • Size: 70.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mock-1.1.3.tar.gz
Algorithm Hash digest
SHA256 202d44d1353abbbab5156a4a66a10540f6550bc65f16b482d244745533827bbe
MD5 6da0cb632ed5ba0201c922a3de8f86ab
BLAKE2b-256 7f5e1719c47d53f4bc93689cd2c72c6051e54e7801453d19c6695106a17cf2d9

See more details on using hashes here.

File details

Details for the file mock-1.1.3-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for mock-1.1.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8ce21b7be4ba5fca86cc3e2ea8a15ba998ae1133b93ca43ff953eb954ffc7374
MD5 d4ffaa94c141830976407663087180a9
BLAKE2b-256 f5b8f3b341aed1402a866e8853a9e03a2be9db4435d1c241e804e79c68fb1e8e

See more details on using hashes here.

Supported by

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