What is the unittest module?
Testing in Python
Audio flashcard · 0:15Nortren·
What is the unittest module?
0:15
Unittest is the built-in testing framework, modeled on JUnit. Test cases are methods in classes derived from TestCase. It provides assertion methods, test discovery, fixtures via setUp and tearDown, and a command-line runner. It is reliable but verbose compared to modern alternatives.
docs.python.org