You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
439 B
25 lines
439 B
#!/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()
|