summaryrefslogtreecommitdiff
path: root/docs/doctests.py
blob: 9aecb31602a3a9c8fd141e44f95b3aeba983aeb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import unittest
import doctest

def test_suite():
    flags = doctest.ELLIPSIS|doctest.NORMALIZE_WHITESPACE
    return unittest.TestSuite((
        doctest.DocFileSuite('test_request.txt', optionflags=flags),
        doctest.DocFileSuite('test_response.txt', optionflags=flags),
        doctest.DocFileSuite('test_dec.txt', optionflags=flags),
        doctest.DocFileSuite('do-it-yourself.txt', optionflags=flags),
        doctest.DocFileSuite('file-example.txt', optionflags=flags),
        doctest.DocFileSuite('index.txt', optionflags=flags),
        doctest.DocFileSuite('reference.txt', optionflags=flags),
        ))

if __name__ == '__main__':
    unittest.main(defaultTest='test_suite')