Testing Frameworks in Python
In this installment, David looks at Python's two standard modules for unit testing: unittest and doctest. These modules expand on the capability of the built-in assert statement, which is used for validation of pre-conditions and post-conditions within functions. He discusses the best ways to incorporate testing into Python development, weighing the advantages of different styles for different types of projects.