cpython/Lib/unittest/test
Miss Islington (bot) 38d311d79e bpo-36871: Ensure method signature is used when asserting mock calls to a method (GH15578)
* 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:58:27 +01:00
..
testmock bpo-36871: Ensure method signature is used when asserting mock calls to a method (GH15578) 2019-08-29 07:58:27 +01:00
__init__.py
__main__.py
_test_warnings.py
dummy.py
support.py
test_assertions.py
test_async_case.py bpo-32972: Async test case (GH-13386) 2019-05-29 02:33:59 -07:00
test_break.py bpo-33746: Fix test_unittest.testRegisterResult() in verbose mode (GH-7799) 2018-06-20 11:29:33 +02:00
test_case.py Fix typo in test comment (GH-11442) 2019-05-18 21:17:47 -04:00
test_discovery.py bpo-9949: Enable symlink traversal for ntpath.realpath (GH-15287) 2019-08-21 14:09:33 -07:00
test_functiontestcase.py
test_loader.py bpo-35767: Fix unittest.loader to allow partials as test_functions (#11600) 2019-01-23 21:57:25 +01:00
test_program.py bpo-32071: Add unittest -k option (#4496) 2017-11-25 16:23:52 +01:00
test_result.py bpo-30664: The description of a unittest subtest now preserves the (#2265) 2017-06-23 21:47:39 +03:00
test_runner.py bpo-37116: Use PEP 570 syntax for positional-only parameters. (GH-13700) 2019-06-01 11:00:15 +03:00
test_setups.py
test_skipping.py
test_suite.py