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'])
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']