Python provides the following two simple modules in the standard library that allow you to write automated tests:
- unittest (https://docs.python.org/3/library/unittest.html): This is the standard and most common Python unit testing framework based on Java's JUnit and originally written by Steve Purcell (formerly PyUnit)
- doctest (https://docs.python.org/3/library/doctest.html): This is a literate programming testing tool with interactive usage examples
Let's take a look at these two modules in the following sections.