projects
/
rss2maildir.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* add (first draft of) full test suite runner
[rss2maildir.git]
/
tests
/
unittests
/
UnorderedListTests.py
diff --git
a/tests/unittests/UnorderedListTests.py
b/tests/unittests/UnorderedListTests.py
index 4d2c393add11c614a9b026ea710e9f6c083ed147..2224e74427b952556a2235f1ca3133402f0d8990 100755
(executable)
--- a/
tests/unittests/UnorderedListTests.py
+++ b/
tests/unittests/UnorderedListTests.py
@@
-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 test
wellformedl
ist(self):
+ def test
WellFormedL
ist(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 test
badlyformed
(self):
+ def test
BadlyFormedList
(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()