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

Method test_unicode_completions

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

Source from the content-addressed store, hash-verified

301 assert matches.index("example2") < matches.index("example1")
302
303 def test_unicode_completions(self):
304 ip = get_ipython()
305 # Some strings that trigger different types of completion. Check them both
306 # in str and unicode forms
307 s = ["ru", "%ru", "cd /", "floa", "float(x)/"]
308 for t in s + list(map(str, s)):
309 # We don't need to check exact completion values (they may change
310 # depending on the state of the namespace, but at least no exceptions
311 # should be thrown and the return value should be a pair of text, list
312 # values.
313 text, matches = ip.complete(t)
314 self.assertIsInstance(text, str)
315 self.assertIsInstance(matches, list)
316
317 def test_latex_completions(self):
318 ip = get_ipython()

Callers

nothing calls this directly

Calls 2

get_ipythonFunction · 0.90
completeMethod · 0.45

Tested by

no test coverage detected