]> git.sommitrealweird.co.uk Git - rss2maildir.git/blobdiff - tests/unittests/UnorderedListTests.py
* add (first draft of) full test suite runner
[rss2maildir.git] / tests / unittests / UnorderedListTests.py
index 4d2c393add11c614a9b026ea710e9f6c083ed147..2224e74427b952556a2235f1ca3133402f0d8990 100755 (executable)
@@ -8,7 +8,7 @@ class UnorderedListTests(unittest.TestCase):
     def setUp(self):
         self.inputpath = os.path.sep.join(os.path.dirname(os.path.realpath(__file__)).split(os.path.sep)[0:-1])
 
     def setUp(self):
         self.inputpath = os.path.sep.join(os.path.dirname(os.path.realpath(__file__)).split(os.path.sep)[0:-1])
 
-    def testwellformedlist(self):
+    def testWellFormedList(self):
         try:
             from rss2maildir import HTML2Text
         except:
         try:
             from rss2maildir import HTML2Text
         except:
@@ -25,7 +25,7 @@ class UnorderedListTests(unittest.TestCase):
         output = parser.gettext()
         self.assertEqual(output, expectedoutput)
 
         output = parser.gettext()
         self.assertEqual(output, expectedoutput)
 
-    def testbadlyformed(self):
+    def testBadlyFormedList(self):
         try:
             from rss2maildir import HTML2Text
         except:
         try:
             from rss2maildir import HTML2Text
         except:
@@ -43,5 +43,11 @@ class UnorderedListTests(unittest.TestCase):
         output = parser.gettext()
         self.assertEqual(output, expectedoutput)
 
         output = parser.gettext()
         self.assertEqual(output, expectedoutput)
 
+def suite():
+    suite = unittest.TestSuite()
+    suite.addTest(UnorderedListTests("testWellFormedList"))
+    suite.addTest(UnorderedListTests("testBadlyFormedList"))
+    return suite
+
 if __name__ == "__main__":
     unittest.main()
 if __name__ == "__main__":
     unittest.main()