aboutsummaryrefslogtreecommitdiff
path: root/pipeline/csv_to_html_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'pipeline/csv_to_html_test.py')
-rwxr-xr-xpipeline/csv_to_html_test.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/pipeline/csv_to_html_test.py b/pipeline/csv_to_html_test.py
new file mode 100755
index 0000000..5fd5822
--- /dev/null
+++ b/pipeline/csv_to_html_test.py
@@ -0,0 +1,24 @@
+#!/usr/bin/python -S
+"""
+csv_to_html_test.py: Tests for csv_to_html.py
+"""
+
+import unittest
+
+import csv_to_html # module under test
+
+
+class CsvToHtmlTest(unittest.TestCase):
+
+ def testParseSpec(self):
+ self.assertEqual(
+ {'foo': 'bar', 'spam': 'eggs'},
+ csv_to_html.ParseSpec(['foo bar', 'spam eggs']))
+
+ self.assertEqual(
+ {},
+ csv_to_html.ParseSpec([]))
+
+
+if __name__ == '__main__':
+ unittest.main()