from paste import doctest_webapp import doctest import os def test_tutorial(): fn = os.path.join(os.path.dirname(os.path.dirname(__file__)), 'docs', 'TodoTutorial.txt') doctest.testfile( fn, module_relative=False, optionflags=doctest.ELLIPSIS|doctest.REPORT_ONLY_FIRST_FAILURE, parser=doctest_webapp.LongFormDocTestParser())