What is the correct way to run all the doctests in a given file from the command line? code example
Example: how to write a python doctest
def a_function(*args):
'''
>>>an input
expected output
'''
if this:
return that
# A doctest may also include a docstring