cpython/Lib/unittest
Miss Islington (bot) be310e03d0 bpo-36871: Ensure method signature is used when asserting mock calls to a method (GH15577)
* 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
(cherry picked from commit c96127821e)

Co-authored-by: Xtreak <tir.karthi@gmail.com>
2019-08-29 07:57:37 +01:00
..
test bpo-36871: Ensure method signature is used when asserting mock calls to a method (GH15577) 2019-08-29 07:57:37 +01:00
__init__.py Issue #28303: Fix grammar in unittest.__doc__, patch by Shlomi Fish 2016-09-28 17:28:41 +03:00
__main__.py bpo-29919: Remove unused imports found by pyflakes (#137) 2017-03-27 16:05:26 +02:00
case.py [3.7] bpo-36492: Fix passing special keyword arguments to some functions. (GH-12637) (GH-12645) 2019-04-01 10:59:24 +03:00
loader.py bpo-35767: Fix unittest.loader to allow partials as test_functions (GH-11600) (#11662) 2019-01-24 18:30:59 +01:00
main.py bpo-32071: Add unittest -k option (#4496) 2017-11-25 16:23:52 +01:00
mock.py bpo-36871: Ensure method signature is used when asserting mock calls to a method (GH15577) 2019-08-29 07:57:37 +01:00
result.py Issue #27076: Doc, comment and tests spelling fixes 2016-05-26 05:35:26 +00:00
runner.py bpo-35513, unittest: TextTestRunner uses time.perf_counter() (GH-11180) 2018-12-17 02:49:22 -08:00
signals.py
suite.py Issue #27171: Fix typos in documentation, comments, and test function names 2016-06-02 10:07:09 +00:00
util.py bpo-32360: unittest.util: Use Counter instead of custom count function (GH-4994) 2018-01-24 16:49:58 +09:00