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

Method test_paste_email

tests/test_magic_terminal.py:151–159  ·  view source on GitHub ↗

Test pasting of email-quoted contents

(self)

Source from the content-addressed store, hash-verified

149 self.assertEqual(ip.user_ns["y"], [1, 4, 9])
150
151 def test_paste_email(self):
152 "Test pasting of email-quoted contents"
153 self.paste(
154 """\
155 >> def foo(x):
156 >> return x + 1
157 >> xx = foo(1.1)"""
158 )
159 self.assertEqual(ip.user_ns["xx"], 2.1)
160
161 def test_paste_email2(self):
162 "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