correct way to run all the doctest in a given file in python 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
def a_function(*args):
'''
>>>an input
expected output
'''
if this:
return that
# A doctest may also include a docstring