def test_get_cursor_location_with_no_cursor(self): template = Template('My name is ${name}.') self.assertEquals(15, template.get_cursor_location({'name': 'Ali'}))
def test_get_cursor_location(self): template = Template('My name is ${name}${cursor}.') self.assertEquals(14, template.get_cursor_location({'name': 'Ali'}))