MCPcopy Index your code
hub / github.com/ipython/ipython / test_paste_py_multi_r

Method test_paste_py_multi_r

tests/test_magic_terminal.py:141–149  ·  view source on GitHub ↗

Now, test that self.paste -r works

(self)

Source from the content-addressed store, hash-verified

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"

Callers

nothing calls this directly

Calls 3

test_paste_py_multiMethod · 0.95
popMethod · 0.80
run_line_magicMethod · 0.80

Tested by

no test coverage detected