(self)
| 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() |
nothing calls this directly
no test coverage detected