Make strict mocks using a mirror
Project description
Make strict mock objects using a mirror:
import mockingmirror
mirror, mock = mockingmirror.mirror()
# Create an object with a method that returns "Hello, World" when called
mirror.myobject.mymethod()[:] = "Hello, World"
assert mock.myobject.mymethod() == "Hello, World"
Install:
pip install mockingmirror
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
mockingmirror-0.1.tar.gz
(7.5 kB
view hashes)
Built Distribution
Close
Hashes for mockingmirror-0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aca7db24a0a2ba8cf4adc66800ed377d424264817f9ce6dc622565a1a3984d0f |
|
MD5 | f6eaf5308111c0648b3a0ef9408390ae |
|
BLAKE2b-256 | d9b1c127bccb391182616a3f280ecb72e7635c8f060bf08e49fbf8613e375305 |