cpython/Lib/unittest/test/testmock
Xtreak c96127821e bpo-36871: Ensure method signature is used when asserting mock calls to a method (GH13261)
* Fix call_matcher for mock when using methods

* Add NEWS entry

* Use None check and convert doctest to unittest

* Use better name for mock in tests. Handle _SpecState when the attribute was not accessed and add tests.

* Use reset_mock instead of reinitialization. Change inner class constructor signature for check

* Reword comment regarding call object lookup logic
2019-08-29 07:09:01 +01:00
..
__init__.py
__main__.py
support.py Mock 100% coverage (GH-13045) 2019-05-01 23:04:04 +01:00
testasync.py bpo-37075: Fix string concatenation in assert_has_awaits error message (GH-13616) 2019-05-29 00:02:25 -07:00
testcallable.py Mock 100% coverage (GH-13045) 2019-05-01 23:04:04 +01:00
testhelpers.py Mock 100% coverage (GH-13045) 2019-05-01 23:04:04 +01:00
testmagicmethods.py Mock 100% coverage (GH-13045) 2019-05-01 23:04:04 +01:00
testmock.py bpo-36871: Ensure method signature is used when asserting mock calls to a method (GH13261) 2019-08-29 07:09:01 +01:00
testpatch.py bpo-32299: Return patched dict when using patch.dict as a context manager (GH-11062) 2019-05-28 08:53:30 -04:00
testsealable.py Mock 100% coverage (GH-13045) 2019-05-01 23:04:04 +01:00
testsentinel.py Issue #20804: The unittest.mock.sentinel attributes now preserve their 2017-01-11 20:13:03 +02:00
testwith.py bpo-37008: make mock_open handle able to honor next() (GH-13492) 2019-05-23 03:03:25 -07:00