MCPcopy Index your code
hub / github.com/ipython/ipython / test_fwd_unicode_restricts

Method test_fwd_unicode_restricts

tests/test_completer.py:1858–1868  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1856 self.assertEqual(c.text[0], "%")
1857
1858 def test_fwd_unicode_restricts(self):
1859 ip = get_ipython()
1860 completer = ip.Completer
1861 text = "\\ROMAN NUMERAL FIVE"
1862
1863 with provisionalcompleter():
1864 completer.use_jedi = True
1865 completions = [
1866 completion.text for completion in completer.completions(text, len(text))
1867 ]
1868 self.assertEqual(completions, ["\u2164"])
1869
1870 def test_dict_key_restrict_to_dicts(self):
1871 """Test that dict key suppresses non-dict completion items"""

Callers

nothing calls this directly

Calls 3

get_ipythonFunction · 0.90
provisionalcompleterFunction · 0.90
completionsMethod · 0.80

Tested by

no test coverage detected