Email quoting of interactive input
(self)
| 169 | self.assertEqual(ip.user_ns["yy"], 3.1) |
| 170 | |
| 171 | def test_paste_email_py(self): |
| 172 | "Email quoting of interactive input" |
| 173 | self.paste( |
| 174 | """\ |
| 175 | >> >>> def f(x): |
| 176 | >> ... return x+1 |
| 177 | >> ... |
| 178 | >> >>> zz = f(2.5) """ |
| 179 | ) |
| 180 | self.assertEqual(ip.user_ns["zz"], 3.5) |
| 181 | |
| 182 | def test_paste_echo(self): |
| 183 | "Also test self.paste echoing, by temporarily faking the writer" |