Exemplo n.º 1
0
 def test_one_number(self):
     self.assertEqual(["1"],
                      TemplateReportGenerator.combine_adjacent_lines([1]))
Exemplo 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))
Exemplo n.º 3
0
 def test_empty_list(self):
     self.assertEqual([],
                      TemplateReportGenerator.combine_adjacent_lines([]))
Exemplo n.º 4
0
 def test_one_number(self):
     self.assertEqual(["1"], TemplateReportGenerator.combine_adjacent_lines([1]))
Exemplo n.º 5
0
 def test_empty_list(self):
     self.assertEqual([], TemplateReportGenerator.combine_adjacent_lines([]))
Exemplo 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))
Exemplo n.º 7
0
 def test_one_number(self):
     assert ["1"] == TemplateReportGenerator.combine_adjacent_lines([1])
Exemplo n.º 8
0
 def test_empty_list(self):
     assert [] == TemplateReportGenerator.combine_adjacent_lines([])