Check Your Test With a Text File
Explore how to use the doctest module for validating Python code by writing interactive test examples in text files. Understand how to create test files, run tests with verbose output, and verify that your functions behave correctly using docstring-based tests.
We'll cover the following...
We'll cover the following...
The doctest module also allows us to write interactive examples to a text file using ReStructuredText, which is a common mark-up language.
Let’s create a ...