MCPcopy Create free account
hub / github.com/bpython/bpython / test_function

Method test_function

bpython/test/test_autocomplete.py:408–415  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

406 self.com = autocomplete.GlobalCompletion()
407
408 def test_function(self):
409 def function():
410 pass
411
412 self.assertEqual(
413 self.com.matches(8, "function", locals_={"function": function}),
414 {"function("},
415 )
416
417 def test_completions_are_unicode(self):
418 for m in self.com.matches(1, "a", locals_={"abc": 10}):

Callers

nothing calls this directly

Calls 1

matchesMethod · 0.45

Tested by

no test coverage detected