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

Method test_1

tests/test_completerlib.py:48–53  ·  view source on GitHub ↗

Test magic_run_completer, should match two alternatives

(self)

Source from the content-addressed store, hash-verified

46 shutil.rmtree(self.BASETESTDIR)
47
48 def test_1(self):
49 """Test magic_run_completer, should match two alternatives"""
50 event = MockEvent("%run a")
51 mockself = None
52 match = set(magic_run_completer(mockself, event))
53 self.assertEqual(match, {"a.py", "aao.py", "adir/"})
54
55 def test_2(self):
56 """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