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

Method test_1

IPython/core/tests/test_completerlib.py:50–56  ·  view source on GitHub ↗

Test magic_run_completer, should match two alternatives

(self)

Source from the content-addressed store, hash-verified

48 shutil.rmtree(self.BASETESTDIR)
49
50 def test_1(self):
51 """Test magic_run_completer, should match two alternatives
52 """
53 event = MockEvent(u"%run a")
54 mockself = None
55 match = set(magic_run_completer(mockself, event))
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

Callers

nothing calls this directly

Calls 2

magic_run_completerFunction · 0.90
MockEventClass · 0.85

Tested by

no test coverage detected