MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / testAddExec_3

Method testAddExec_3

tests/test_pydev_ipython_011.py:71–75  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

69 assert "testAddExec_a" in self.front_end.get_namespace()
70
71 def testAddExec_3(self):
72 assert "testAddExec_x" not in self.front_end.get_namespace()
73 self.add_exec("if True:\n testAddExec_x = 10\n\n")
74 assert "testAddExec_x" in self.front_end.get_namespace()
75 eq_(self.front_end.get_namespace()["testAddExec_x"], 10)
76
77 def test_get_namespace(self):
78 assert "testGetNamespace_a" not in self.front_end.get_namespace()

Callers

nothing calls this directly

Calls 3

eq_Function · 0.85
get_namespaceMethod · 0.45
add_execMethod · 0.45

Tested by

no test coverage detected