matchmock 2.1.1
pip install matchmock
Latest version
Released:
Hamcrest matchers for mock objects.
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- Author: David Keijser
Project description
matchmock
Hamcrest matchers for mock objects.
Starting from version 2.0.0 python2 is no longer supported the 1.x series will remain supported but no new features will be added.
Example
f = Mock()
f.method('foo', 'bar')
assert_that(f.method, called_once_with(anything(), 'bar')
Matchers
called
- match mock that was called one or more timesnot_called
- match mock that was never calledcalled_once
- match mock that was called once regardless of argumentscalled_with
- match mock has at least one call with the specified argumentscalled_once_with
- match mock that was called once and with the specified argumentscalled_n_times
- match mock that was called number of times.
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- Author: David Keijser
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
Built Distribution
File details
Details for the file matchmock-2.1.1.tar.gz
.
File metadata
- Download URL: matchmock-2.1.1.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b65b79a9d3bcf35ffcb9f7c7f8f804e0ab8ce2d32b7308ab91e964d12470479 |
|
MD5 | bd09c540d44c81dd32d2bb49b3f1c5a8 |
|
BLAKE2b-256 | e8ef502b2eba4e29f75c53457fc4d15211db240fd8a19bbcc0b945e7e1e09da3 |
File details
Details for the file matchmock-2.1.1-py3-none-any.whl
.
File metadata
- Download URL: matchmock-2.1.1-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f063a61784a07f31d84ad5715db140c86240219509d79e3cc7500fe6190ee645 |
|
MD5 | 5bbb8c70441b3b327a03fb1c3fb38616 |
|
BLAKE2b-256 | a00508f68c7c53756827cd3867ae60bdd9b5ec2f8c9c28a85e12022b7b2b1986 |