def test_should_handle_end_of_string(self): self.assertEqual(jedibackend.pos_to_linecol("foo\nbar\nbaz\nqux", 14), (4, 2))
def test_should_handle_end_of_line(self): self.assertEqual(jedibackend.pos_to_linecol("foo\nbar\nbaz\nqux", 9), (3, 1))
def test_should_handle_beginning_of_string(self): self.assertEqual(jedibackend.pos_to_linecol("foo", 0), (1, 0))