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.2.tar.gz (69.7 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.2-py2.py3-none-any.whl (55.7 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for mock-1.1.2.tar.gz
Algorithm Hash digest
SHA256 870ed9c40f370f2f77900a710040f46255efccae77c0266fb47169f1b5ecb9f1
MD5 4f3f256655ab8f39a1d364ab868e1677
BLAKE2b-256 f4c0ff5bb8efbffb00167163ed0b667b9be27042a61657db3d7d839c1b798054

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mock-1.1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ce0ff4139e99cb94c2fb14a63efd0fdbc8ff81eaa651eb402bc69621715fee42
MD5 be5bb226566cb467564cab023fd6e82d
BLAKE2b-256 bdc268ba303ccb4e4f7ea6ec70155707287eeaa70b9983e4e6ede68d75311d96

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