pytty

view tests/TestDocs.py @ 35:9ecd879bcd15

Updated copyright for 2014 - Happy New Year!
author Arc Riley <arcriley@gmail.com>
date Wed, 01 Jan 2014 05:06:11 +0000
parents 79b42fa3c17b
children
line source
1 #!/usr/bin/env python
2 # -*- coding: utf-8 -*-
4 '''TestDocs for PyTTY
6 This test suite scans PyTTY's documentation for code examples and runs
7 them checking to ensure the output is as expected.
9 See http://docs.python.org/library/doctest.html for details.
10 '''
12 __credits__ = '''Copyright (C) 2010,2011,2012,2013,2014 Arc Riley
14 This program is free software; you can redistribute it and/or modify
15 it under the terms of the GNU Lesser General Public License as published
16 by the Free Software Foundation, either version 3 of the License, or
17 (at your option) any later version.
19 This program is distributed in the hope that it will be useful,
20 but WITHOUT ANY WARRANTY; without even the implied warranty of
21 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 GNU Lesser General Public License for more details.
24 You should have received a copy of the GNU Lesser General Public License
25 along with this program; if not, see http://www.gnu.org/licenses
26 '''
29 import doctest
30 import unittest2 as unittest
31 import pytty
34 def load_tests(loader, tests, ignore):
35 tests.addTests(doctest.DocTestSuite(
36 module = pytty,
37 globs = {
38 'pytty' : pytty, # So examples don't need "import pytty"
39 },
40 ))
41 return tests
44 if __name__ == '__main__':
45 unittest.main()