def test_findstart_in_an_empty_line(self):
     with self._helper_mock_current("", 0):
         actual_result = localcomplete.findstart_get_line_up_to_cursor()
     self.assertEqual(actual_result, u"")
示例#2
0
 def test_findstart_in_an_empty_line(self):
     with self._helper_mock_current("", 0):
         actual_result = localcomplete.findstart_get_line_up_to_cursor()
     self.assertEqual(actual_result, u"")
 def test_findstart_up_to_cursor(self):
     with self._helper_mock_current("abba", 2):
         actual_result = localcomplete.findstart_get_line_up_to_cursor()
     self.assertEqual(actual_result, u"ab")
示例#4
0
 def test_findstart_up_to_cursor(self):
     with self._helper_mock_current("abba", 2):
         actual_result = localcomplete.findstart_get_line_up_to_cursor()
     self.assertEqual(actual_result, u"ab")