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

Method test_paste_email_py

tests/test_magic_terminal.py:171–180  ·  view source on GitHub ↗

Email quoting of interactive input

(self)

Source from the content-addressed store, hash-verified

169 self.assertEqual(ip.user_ns["yy"], 3.1)
170
171 def test_paste_email_py(self):
172 "Email quoting of interactive input"
173 self.paste(
174 """\
175 >> >>> def f(x):
176 >> ... return x+1
177 >> ...
178 >> >>> zz = f(2.5) """
179 )
180 self.assertEqual(ip.user_ns["zz"], 3.5)
181
182 def test_paste_echo(self):
183 "Also test self.paste echoing, by temporarily faking the writer"

Callers

nothing calls this directly

Calls 1

pasteMethod · 0.95

Tested by

no test coverage detected