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

Method test_paste_py_multi

tests/test_magic_terminal.py:128–139  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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"

Callers 1

test_paste_py_multi_rMethod · 0.95

Calls 1

pasteMethod · 0.95

Tested by

no test coverage detected