Test multiline strings with leading commas
(self)
| 197 | assert out == code + "\n## -- End pasted text --\n" |
| 198 | |
| 199 | def test_paste_leading_commas(self): |
| 200 | "Test multiline strings with leading commas" |
| 201 | tm = ip.magics_manager.registry["TerminalMagics"] |
| 202 | s = '''\ |
| 203 | a = """ |
| 204 | ,1,2,3 |
| 205 | """''' |
| 206 | ip.user_ns.pop("foo", None) |
| 207 | tm.store_or_execute(s, "foo") |
| 208 | self.assertIn("foo", ip.user_ns) |
| 209 | |
| 210 | def test_paste_trailing_question(self): |
| 211 | "Test pasting sources with trailing question marks" |
nothing calls this directly
no test coverage detected