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"")
Beispiel #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")
Beispiel #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")