Add new assertion methods for checking spies.
Review Request #10988 — Created April 4, 2020 and submitted
KGB is hitting 5.0, and for the first time, it's getting its own
These are designed to replace the usage of
etc. with checks on a spy or call. They perform the necessary checks and
then provide detailed information if the assertion goes wrong.
The following assertion methods are implemented:
New code should use these assertion methods for best results.
The README has been updated to show both the new-style and old-style
Unit tests pass on all supported versions of Python.
Tested several of these through an update to an existing codebase.
E303 too many blank lines (2)
Revision 2 (+2802 -22)
Checks run (1 failed, 1 succeeded)