doctest simple example

This commit is contained in:
bt3gl 2014-11-26 13:34:23 -05:00
parent ac0c509a73
commit 84e8d42871

View File

@ -0,0 +1,11 @@
'''
The doctest module automatically runs any statement begining with >>>
and compares the following line with the output from the interpreter.
>>> 1 == 1
False
'''
if __name__ == '__main__':
import doctest
doctest.testmod()