diff --git a/tests/test_docs.py b/tests/test_docs.py new file mode 100644 index 0000000..f9a2310 --- /dev/null +++ b/tests/test_docs.py @@ -0,0 +1,20 @@ +#!/usr/bin/env python + +import unittest, os +from xml.dom import minidom +from glob import glob + +class DocsTest(unittest.TestCase): + + def test_well_formed(self): + for doc in glob('docs/*'): + if os.path.isdir(doc): continue + if doc.endswith('.css') or doc.endswith('.js'): continue + + try: + minidom.parse(doc) + except: + self.fail('Not well formed: ' + doc); + break + else: + self.assertTrue(True);