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

Method test_current_string

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

Source from the content-addressed store, hash-verified

375 self.repl = FakeRepl()
376
377 def test_current_string(self):
378 self.set_input_line('a = "2"')
379 # TODO factor cpos out of repl.Repl
380 self.repl.cpos = 0
381 self.assertEqual(self.repl.current_string(), '"2"')
382
383 self.set_input_line('a = "2" + 2')
384 self.assertEqual(self.repl.current_string(), "")
385
386 def test_push(self):
387 self.repl = FakeRepl()

Callers

nothing calls this directly

Calls 2

set_input_lineMethod · 0.95
current_stringMethod · 0.80

Tested by

no test coverage detected