'Test line_number_to_line.'

@data({'string': 'test', 'line_number': 1, 'line': 'test'}, {'string': '\ntest', 'line_number': 1, 'line': ''}, {'string': '\ntest', 'line_number': 2, 'line': 'test'}, {'string': '\ntest\n', 'line_number': 1, 'line': ''}, {'string': '\ntest\n', 'line_number': 2, 'line': 'test'}, {'string': '\ntest\n', 'line_number': 3, 'line': ''})
def test_string_lines_start_end_index(self, data):

    lines = StringLines(data['string'])
    self.assertEqual(lines.line_number_to_line(data['line_number']), data['line'])
