Skip to content

Instantly share code, notes, and snippets.

@manniche
Created April 5, 2010 21:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save manniche/356930 to your computer and use it in GitHub Desktop.
Save manniche/356930 to your computer and use it in GitHub Desktop.
def doctest_test( input_string ):
'''
>>> doctest_test( r"""//\todo""" )
True
'''
# print( input_string )
# print( "%s"%( input_string ) )
# import sys
# sys.stdout.write( input_string )
compare_string = r"""//\todo"""
assert input_string == compare_string
assert r"""//\todo""" == input_string
return r"""//\todo""" == input_string
if __name__ == "__main__":
# assert doctest_test( r"""//\todo""" )
# print doctest_test( r"""//\todo""" )
import doctest
doctest.testmod()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment