Doctest is a really clever built-in Python module that allows you to embed automated tests in documentation strings. If you’re somewhat new to Python and that sounds complicated — it isn’t. It is very ...