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.
Eugenia,
Thanks for the article on python – a language I plan to use for an upcoming project. I’ll be sure to read it carefully when I have the chance.
PS. Thanks also for a return to an OSNews layout more consistent with what we’ve all grown accustomed to.