MCPcopy Index your code
hub / github.com/bpython/bpython / test_repl

Method test_repl

bpython/test/test_curtsies_repl.py:247–251  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

245
246class TestFutureImports(TestCase):
247 def test_repl(self):
248 repl = create_repl()
249 with captured_output() as (out, err):
250 repl.push("1 / 2")
251 self.assertEqual(out.getvalue(), "0.5\n")
252
253 def test_interactive(self):
254 interp = code.InteractiveInterpreter(locals={})

Callers

nothing calls this directly

Calls 3

captured_outputFunction · 0.85
create_replFunction · 0.70
pushMethod · 0.45

Tested by

no test coverage detected