Esempio n. 1
0
 def test_string_lines_start_end_index(self, data):
     """
     Test line_number_to_line.
     """
     lines = StringLines(data['string'])
     self.assertEqual(lines.line_number_to_line(data['line_number']),
                      data['line'])
Esempio n. 2
0
 def test_string_lines_line_numbers(self, data):
     """
     Test line_number_to_line.
     """
     lines = StringLines(data['string'])
     assert lines.line_number_to_line(data['line_number']) == data['line']
Esempio n. 3
0
 def test_string_lines_start_end_index(self, data):
     """
     Test line_number_to_line.
     """
     lines = StringLines(data['string'])
     self.assertEqual(lines.line_number_to_line(data['line_number']), data['line'])