MCPcopy Create free account
hub / github.com/bpython/bpython / test_newline

Method test_newline

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

Source from the content-addressed store, hash-verified

269 self.repl = create_repl()
270
271 def test_newline(self):
272 self.repl.send_to_stdouterr("\n\n")
273 self.assertEqual(self.repl.display_lines[-2], "")
274 self.assertEqual(self.repl.display_lines[-1], "")
275 self.assertEqual(self.repl.current_stdouterr_line, "")
276
277 def test_leading_newline(self):
278 self.repl.send_to_stdouterr("\nfoo\n")

Callers

nothing calls this directly

Calls 1

send_to_stdouterrMethod · 0.80

Tested by

no test coverage detected