May 2016
Beginner to intermediate
382 pages
7h 21m
English
unittest is the built-in (since version 2.1) testing framework for Python. It is modelled after the excellent JUnit framework for Java, and the xUnit testing frameworks in general. This makes for a clean, object-oriented style.
unittest supports the standard unit testing parts in a straightforward manner. The following concepts map onto functional elements:
setUp and tearDown for all the test cases in a class.Read now
Unlock full access