1import unittest 2import doctest 3 4def test_suite(): 5 flags = doctest.ELLIPSIS|doctest.NORMALIZE_WHITESPACE 6 return unittest.TestSuite(( 7 doctest.DocFileSuite('test_request.txt', optionflags=flags), 8 doctest.DocFileSuite('test_response.txt', optionflags=flags), 9 doctest.DocFileSuite('test_dec.txt', optionflags=flags), 10 doctest.DocFileSuite('do-it-yourself.txt', optionflags=flags), 11 doctest.DocFileSuite('file-example.txt', optionflags=flags), 12 doctest.DocFileSuite('index.txt', optionflags=flags), 13 doctest.DocFileSuite('reference.txt', optionflags=flags), 14 )) 15 16if __name__ == '__main__': 17 unittest.main(defaultTest='test_suite') 18