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

Method test_push

bpython/test/test_repl.py:386–389  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

384 self.assertEqual(self.repl.current_string(), "")
385
386 def test_push(self):
387 self.repl = FakeRepl()
388 self.repl.push("foobar = 2")
389 self.assertEqual(self.repl.interp.locals["foobar"], 2)
390
391 # COMPLETE TESTS
392 # 1. Global tests

Callers

nothing calls this directly

Calls 2

FakeReplClass · 0.85
pushMethod · 0.45

Tested by

no test coverage detected