MCPcopy Create free account
hub / github.com/ipython/ipython / test_paste_email

Method test_paste_email

IPython/core/tests/test_magic_terminal.py:128–134  ·  view source on GitHub ↗

Test pasting of email-quoted contents

(self)

Source from the content-addressed store, hash-verified

126 nt.assert_equal(ip.user_ns['y'], [1,4,9])
127
128 def test_paste_email(self):
129 "Test pasting of email-quoted contents"
130 self.paste("""\
131 >> def foo(x):
132 >> return x + 1
133 >> xx = foo(1.1)""")
134 nt.assert_equal(ip.user_ns['xx'], 2.1)
135
136 def test_paste_email2(self):
137 "Email again; some programs add a space also at each quoting level"

Callers

nothing calls this directly

Calls 1

pasteMethod · 0.95

Tested by

no test coverage detected