• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/usr/bin/python -S
2"""
3csv_to_html_test.py: Tests for csv_to_html.py
4"""
5
6import unittest
7
8import csv_to_html  # module under test
9
10
11class CsvToHtmlTest(unittest.TestCase):
12
13  def testParseSpec(self):
14    self.assertEqual(
15        {'foo': 'bar', 'spam': 'eggs'},
16        csv_to_html.ParseSpec(['foo bar', 'spam eggs']))
17
18    self.assertEqual(
19        {},
20        csv_to_html.ParseSpec([]))
21
22
23if __name__ == '__main__':
24  unittest.main()
25