Now, test that self.paste -r works
(self)
| 139 | self.assertEqual(ip.user_ns["y"], [1, 4, 9]) |
| 140 | |
| 141 | def test_paste_py_multi_r(self): |
| 142 | "Now, test that self.paste -r works" |
| 143 | self.test_paste_py_multi() |
| 144 | self.assertEqual(ip.user_ns.pop("x"), [1, 2, 3]) |
| 145 | self.assertEqual(ip.user_ns.pop("y"), [1, 4, 9]) |
| 146 | self.assertFalse("x" in ip.user_ns) |
| 147 | ip.run_line_magic("paste", "-r") |
| 148 | self.assertEqual(ip.user_ns["x"], [1, 2, 3]) |
| 149 | self.assertEqual(ip.user_ns["y"], [1, 4, 9]) |
| 150 | |
| 151 | def test_paste_email(self): |
| 152 | "Test pasting of email-quoted contents" |
nothing calls this directly
no test coverage detected