Starting the unit testing process

Using the standard unit testing structure/framework that we defined in the chapter before last allows us to start the unit testing of any code base very quickly and easily. It also lends itself well to an iterative test development process. The starting point test module, once the configuration items have been set within it by the couple of search and replace operations, immediately starts reporting on what test cases and methods are reporting. Our initial test module is little more than the following (with some comments removed to keep the listing short):

#!/usr/bin/env python """ Defines unit-tests for the module at hms_core. """ ####################################### # Standard library imports needed ...

Get Hands-On Software Engineering with Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.