def test_unicode_linestart_with_unicode_keyword(self):
     line = u"\u00fc\u00fc\u00fcber \u00fcberfu\u00df"
     with self._helper_isolate_column_getter(line_start=line):
         self.assertEqual(7,
                 localcomplete.findstart_get_starting_column_index())
 def test_trailing_space_returns_the_current_cursor_position(self):
     # The cursor is behind the string
     with self._helper_isolate_column_getter(line_start="ab b "):
         self.assertEqual(5,
                 localcomplete.findstart_get_starting_column_index())
 def test_normal_case_with_a_trailing_keyword(self):
     with self._helper_isolate_column_getter(line_start="ab b"):
         self.assertEqual(3,
                 localcomplete.findstart_get_starting_column_index())
Example #4
0
 def test_unicode_linestart_with_unicode_keyword(self):
     line = u"\u00fc\u00fc\u00fcber \u00fcberfu\u00df"
     with self._helper_isolate_column_getter(line_start=line):
         self.assertEqual(
             7, localcomplete.findstart_get_starting_column_index())
Example #5
0
 def test_trailing_space_returns_the_current_cursor_position(self):
     # The cursor is behind the string
     with self._helper_isolate_column_getter(line_start="ab b "):
         self.assertEqual(
             5, localcomplete.findstart_get_starting_column_index())
Example #6
0
 def test_normal_case_with_a_trailing_keyword(self):
     with self._helper_isolate_column_getter(line_start="ab b"):
         self.assertEqual(
             3, localcomplete.findstart_get_starting_column_index())