Testing is a very important discipline to ensure and validate software quality. Python includes two standard modules to perform functional testing. Prior to version 2.4 both tools were unrelated, leading to scattered testing code. From this version on a unittest API is provided by doctest. The present work aims to propose some enhancements to this API in order to achieve a better unittest-doctest integration. Although there are more complex testing tools (e.g. nose) which allow performing both kinds of tests, they are outside the scope of this article. Firstly, they are not standard modules. Besides, the intent is to load and execute doctests just like if we were using unittest.Even though many types of tests exist these days1, functional t...