Skip to main content

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.6 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.2.0.tar.gz (70.4 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.2.0-py2.py3-none-any.whl (55.8 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for mock-1.2.0.tar.gz
Algorithm Hash digest
SHA256 c2df20835beea1c018f4ecc8382317c50aea01351caae1730933f564757d571e
MD5 94ec3b0bea7486018196d59c05ff8645
BLAKE2b-256 d3f0308e5dd1a04922affc3fc8f14ccc386977a73d812983b96ca55bee3f0b9c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mock-1.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a99dae66ba27878bceb8fb4f94815b6855f5472a5b17095782a220ecfe9e6765
MD5 498e779073d532ca5527e58856aa59cd
BLAKE2b-256 85a49c8f854991f458a038f56333bb57abc2b7721429b76f0f76770391ffbd39

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 Pingdom Monitoring Sentry Error logging StatusPage Status page