cpython/Lib/unittest
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 gh-126133: Only use start year in PSF copyright, remove end years (#126236) 2024-11-12 15:59:19 +02:00
__main__.py
_log.py bpo-41943: Fix bug where assertLogs doesn't correctly filter messages… (GH-22565) 2020-11-02 11:25:29 -08:00
async_case.py bpo-46128: Strip IsolatedAsyncioTestCase frames from reported stacktraces (#30196) 2024-11-13 05:24:33 +01:00
case.py gh-71339: Add additional assertion methods for unittest (GH-128707) 2025-01-14 10:02:38 +02:00
loader.py gh-80958: unittest: discovery support for namespace packages as start directory (#123820) 2024-10-23 13:41:33 +09:00
main.py GH-113661: unittest runner: Don't exit 5 if tests were skipped (#113856) 2024-01-09 19:50:01 +00:00
mock.py gh-104745: Limit starting a patcher more than once without stopping it (#126649) 2024-11-13 08:20:38 +00:00
result.py gh-127221: Add colour to unittest output (#127223) 2024-12-05 21:10:46 +02:00
runner.py gh-127221: Add colour to unittest output (#127223) 2024-12-05 21:10:46 +02:00
signals.py
suite.py bpo-43913: Fix bugs in cleaning up classes and modules in unittest. (GH-28006) 2021-08-30 18:25:59 +02:00
util.py bpo-32360: unittest.util: Use Counter instead of custom count function (GH-4994) 2018-01-24 16:49:58 +09:00