Skip to main content

An easy-to-use but full featured mocking library for Python.

Project description

Here is a short example showing how to start working with Mocki :

>>> mock = Mock('theMock')
>>> mock.verifyCall(1, 2, 3, x=7, y=8, z=9).invokedOnce()
Traceback (most recent call last):
...
AssertionError: No call invoked from theMock up to now.
>>> mock(1, 2, 3, x=7, y=8, z=9)
>>> mock.verifyCall(1, 2, 3, x=7, y=8, z=9).invokedOnce()

Project details


Download files

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

Source Distribution

Mocki-1.5.tar.gz (21.9 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page