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.verify(thatCall(1, 2, 3, x=7, y=8, z=9)).invoked(once()) 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.verify(thatCall(1, 2, 3, x=7, y=8, z=9)).invoked(once())
Project details
Release history Release notifications | RSS feed
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.3.tar.gz
(21.7 kB
view hashes)