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

Method test_paste

IPython/core/tests/test_magic_terminal.py:95–99  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

93 ip.hooks.clipboard_get = self.original_clip
94
95 def test_paste(self):
96 ip.user_ns.pop('x', None)
97 self.paste('x = 1')
98 nt.assert_equal(ip.user_ns['x'], 1)
99 ip.user_ns.pop('x')
100
101 def test_paste_pyprompt(self):
102 ip.user_ns.pop('x', None)

Callers

nothing calls this directly

Calls 2

pasteMethod · 0.95
popMethod · 0.80

Tested by

no test coverage detected