MCPcopy Create free account
hub / github.com/ipython/ipython / test_2

Method test_2

IPython/core/tests/test_completerlib.py:58–64  ·  view source on GitHub ↗

Test magic_run_completer, should match one alternative

(self)

Source from the content-addressed store, hash-verified

56 self.assertEqual(match, {u"a.py", u"aao.py", u"adir/"})
57
58 def test_2(self):
59 """Test magic_run_completer, should match one alternative
60 """
61 event = MockEvent(u"%run aa")
62 mockself = None
63 match = set(magic_run_completer(mockself, event))
64 self.assertEqual(match, {u"aao.py"})
65
66 def test_3(self):
67 """Test magic_run_completer with unterminated " """

Callers

nothing calls this directly

Calls 2

magic_run_completerFunction · 0.90
MockEventClass · 0.85

Tested by

no test coverage detected