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

Method test_source

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

Source from the content-addressed store, hash-verified

136 self.assertEqual(isp._is_complete, False)
137
138 def test_source(self):
139 self.isp._store('1')
140 self.isp._store('2')
141 self.assertEqual(self.isp.source, '1\n2\n')
142 self.assertEqual(len(self.isp._buffer)>0, True)
143 self.assertEqual(self.isp.source_reset(), '1\n2\n')
144 self.assertEqual(self.isp._buffer, [])
145 self.assertEqual(self.isp.source, '')
146
147 def test_indent(self):
148 isp = self.isp # shorthand

Callers

nothing calls this directly

Calls 2

_storeMethod · 0.80
source_resetMethod · 0.45

Tested by

no test coverage detected