Esempio n. 1
0
 def test_lines_with_malformed_roster(self):
     with open(
         os.path.join(
             "test-data",
             "test-roster-3-no-identifier-line.htm")) as test_roster:
         data = test_roster.read()
         with self.assertRaises(process_roster.InputFileException) as cm:
             lines = process_roster.lines(data)
Esempio n. 2
0
 def test_lines_with_good_data(self):
     with open(os.path.join("test-data", "test-roster-2.htm")) as test_roster:
         data = test_roster.read()
         lines = process_roster.lines(data)
         self.assertEqual(lines, unittest_results.test_roster_2_as_lines)