cpython/Lib/test/test_unittest/testmock
Serhiy Storchaka 06cad77a5b
gh-71339: Add additional assertion methods for unittest (GH-128707)
Add the following methods:

* assertHasAttr() and assertNotHasAttr()
* assertIsSubclass() and assertNotIsSubclass()
* assertStartsWith() and assertNotStartsWith()
* assertEndsWith() and assertNotEndsWith()

Also improve error messages for assertIsInstance() and
assertNotIsInstance().
2025-01-14 10:02:38 +02:00
..
__init__.py
__main__.py
support.py gh-119600: mock: do not access attributes of original when new_callable is set (#119601) 2024-06-11 06:41:12 +01:00
testasync.py gh-71339: Add additional assertion methods for unittest (GH-128707) 2025-01-14 10:02:38 +02:00
testcallable.py gh-71339: Add additional assertion methods for unittest (GH-128707) 2025-01-14 10:02:38 +02:00
testhelpers.py gh-71339: Add additional assertion methods for unittest (GH-128707) 2025-01-14 10:02:38 +02:00
testmagicmethods.py gh-71339: Add additional assertion methods for unittest (GH-128707) 2025-01-14 10:02:38 +02:00
testmock.py gh-71339: Add additional assertion methods for unittest (GH-128707) 2025-01-14 10:02:38 +02:00
testpatch.py gh-71339: Add additional assertion methods for unittest (GH-128707) 2025-01-14 10:02:38 +02:00
testsealable.py Fix mock code coverage. (#100580) 2022-12-28 12:36:26 +00:00
testsentinel.py
testthreadingmock.py gh-109653: Remove unused imports in the `Lib/` directory (#109803) 2023-09-24 15:07:23 +01:00
testwith.py bpo-44185: Added close() to mock_open __exit__ (#26902) 2023-06-11 19:51:21 +01:00