Mercurial > genshi > mirror
annotate markup/tests/input.py @ 27:b4f78c05e5c9 trunk
* Fix the boilerplate in the Python source files.
* Some more docstrings and cosmetic fixes.
author | cmlenz |
---|---|
date | Wed, 28 Jun 2006 09:28:09 +0000 |
parents | 3c1a022be04c |
children | 59eb24184e9c |
rev | line source |
---|---|
1 | 1 # -*- coding: utf-8 -*- |
2 # | |
27 | 3 # Copyright (C) 2006 Christopher Lenz |
1 | 4 # All rights reserved. |
5 # | |
6 # This software is licensed as described in the file COPYING, which | |
7 # you should have received as part of this distribution. The terms | |
27 | 8 # are also available at http://markup.cmlenz.net/wiki/License. |
1 | 9 # |
10 # This software consists of voluntary contributions made by many | |
11 # individuals. For the exact contribution history, see the revision | |
27 | 12 # history and logs, available at http://markup.cmlenz.net/log/. |
1 | 13 |
26
3c1a022be04c
* Split out the XPath tests into a separate `unittest`-based file.
cmlenz
parents:
1
diff
changeset
|
14 import doctest |
1 | 15 import unittest |
16 | |
17 from markup.core import Stream | |
18 from markup.input import XMLParser | |
19 | |
20 | |
21 def suite(): | |
22 suite = unittest.TestSuite() | |
26
3c1a022be04c
* Split out the XPath tests into a separate `unittest`-based file.
cmlenz
parents:
1
diff
changeset
|
23 suite.addTest(doctest.DocTestSuite(XMLParser.__module__)) |
1 | 24 return suite |
25 | |
26 if __name__ == '__main__': | |
27 unittest.main(defaultTest='suite') |