blob: a84a19bfc4e8636487f4cb9e959edc2a8721fbb3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
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")
|