Test pasting of email-quoted contents
(self)
| 149 | self.assertEqual(ip.user_ns["y"], [1, 4, 9]) |
| 150 | |
| 151 | def test_paste_email(self): |
| 152 | "Test pasting of email-quoted contents" |
| 153 | self.paste( |
| 154 | """\ |
| 155 | >> def foo(x): |
| 156 | >> return x + 1 |
| 157 | >> xx = foo(1.1)""" |
| 158 | ) |
| 159 | self.assertEqual(ip.user_ns["xx"], 2.1) |
| 160 | |
| 161 | def test_paste_email2(self): |
| 162 | "Email again; some programs add a space also at each quoting level" |