From abbd97471efa3ff853573242575051e076526d80 Mon Sep 17 00:00:00 2001 From: Sam Ruby Date: Fri, 16 Mar 2007 15:02:37 -0400 Subject: [PATCH] Ensure that the documentation remains well formed --- tests/test_docs.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 tests/test_docs.py 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);