Esempio n. 1
0
 def test_one_number(self):
     self.assertEqual(["1"],
                      TemplateReportGenerator.combine_adjacent_lines([1]))
Esempio n. 2
0
 def _test_input_expected_output(self, input_with_expected_output):
     for test_input, expected_output in input_with_expected_output:
         self.assertEqual(
             expected_output,
             TemplateReportGenerator.combine_adjacent_lines(test_input))
Esempio n. 3
0
 def test_empty_list(self):
     self.assertEqual([],
                      TemplateReportGenerator.combine_adjacent_lines([]))
Esempio n. 4
0
 def test_one_number(self):
     self.assertEqual(["1"], TemplateReportGenerator.combine_adjacent_lines([1]))
Esempio n. 5
0
 def test_empty_list(self):
     self.assertEqual([], TemplateReportGenerator.combine_adjacent_lines([]))
Esempio n. 6
0
 def _test_input_expected_output(self, input_with_expected_output):
     for test_input, expected_output in input_with_expected_output:
         self.assertEqual(expected_output,
                          TemplateReportGenerator.combine_adjacent_lines(test_input))
Esempio n. 7
0
 def test_one_number(self):
     assert ["1"] == TemplateReportGenerator.combine_adjacent_lines([1])
Esempio n. 8
0
 def test_empty_list(self):
     assert [] == TemplateReportGenerator.combine_adjacent_lines([])