(self)
| 126 | ip.user_ns.pop("x") |
| 127 | |
| 128 | def test_paste_py_multi(self): |
| 129 | self.paste( |
| 130 | """ |
| 131 | >>> x = [1,2,3] |
| 132 | >>> y = [] |
| 133 | >>> for i in x: |
| 134 | ... y.append(i**2) |
| 135 | ... |
| 136 | """ |
| 137 | ) |
| 138 | self.assertEqual(ip.user_ns["x"], [1, 2, 3]) |
| 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" |
no test coverage detected