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

Method test_reset

IPython/core/tests/test_inputsplitter.py:128–136  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

126 self.isp = isp.InputSplitter()
127
128 def test_reset(self):
129 isp = self.isp
130 isp.push('x=1')
131 isp.reset()
132 self.assertEqual(isp._buffer, [])
133 self.assertEqual(isp.get_indent_spaces(), 0)
134 self.assertEqual(isp.source, '')
135 self.assertEqual(isp.code, None)
136 self.assertEqual(isp._is_complete, False)
137
138 def test_source(self):
139 self.isp._store('1')

Callers

nothing calls this directly

Calls 3

get_indent_spacesMethod · 0.80
pushMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected