Add assertSpyNotCalledWith().

Review Request #11159 — Created Sept. 3, 2020 and submitted — Latest diff uploaded

Information

kgb
master

Reviewers

kgb

This fills a gap in the assertion methods offered by KGB, allowing a
caller to assert that a particular call was never made. This is the
negation of assertSpyCalledWith(), and accepts a function, a spy, or a
call.

Unit tests pass for all supported versions of Python.

Used this in a unit test successfully.

Diff Revision 1 (Latest)

Commits

First Last Summary ID Author
Add assertSpyNotCalledWith().
This fills a gap in the assertion methods offered by KGB, allowing a caller to assert that a particular call was never made. This is the negation of `assertSpyCalledWith()`, and accepts a function, a spy, or a call.
f54f76cfb67d2041e0d1641c2220294c91b9e51c Christian Hammond
README.rst
kgb/agency.py
kgb/tests/test_spy_agency.py
Loading...