August 2018
Intermediate to advanced
366 pages
10h 14m
English
The unittest module provides two major features:
By creating a unittest.TestCase class, we can gather multiple tests under the same set of fixtures, which are provided by the class as the setUp and setUpClass methods. The setUpClass method is performed once for the whole class, while the setUp method is performed once for every test. Tests are all the class methods whose name starts with test*.
Once the tests have been ...