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
Metadata
Release files for mockingmirror 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mockingmirror-0.2.tar.gz | 7.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mockingmirror-0.2-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 12.4 kB
Release files / mockingmirror-0.2.tar.gz
| Download URL | mockingmirror-0.2.tar.gz |
|---|---|
| Size | 7.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a5de7bb46a726fe0cf6e6d1ad0a863bcb34298400d369a0e49d403b9b4f3f640
|
|
BLAKE2b-256 checksum How to use checksums |
420a2b91172827f70beaf726efd913498a9f6588d0304ee8768cac3502c9df8a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / mockingmirror-0.2-py2.py3-none-any.whl
| Download URL | mockingmirror-0.2-py2.py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
50e72154fb4d6904bce12ed5645a2440510225cfb420819441e73fad63a0d457
|
|
BLAKE2b-256 checksum How to use checksums |
de700b4523d78efae73921e4aed2776c603e7b4188bd2ec5954ca4880fa8b378
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |