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.3 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-2.0.0.tar.gz (73.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-2.0.0-py2.py3-none-any.whl (56.8 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for mock-2.0.0.tar.gz
Algorithm Hash digest
SHA256 b158b6df76edd239b8208d481dc46b6afd45a846b7812ff0ce58971cf5bc8bba
MD5 0febfafd14330c9dcaa40de2d82d40ad
BLAKE2b-256 0c53014354fc93c591ccc4abff12c473ad565a2eb24dcd82490fae33dbf2539f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mock-2.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5ce3c71c5545b472da17b72268978914d0252980348636840bd34a00b5cc96c1
MD5 dd5ca80a263f2a9e55832bfc63f01335
BLAKE2b-256 e635f187bdf23be87092bd0f1200d43d23076cee4d0dec109f195173fd3ebc79

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