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

Method test_long_dict

IPython/lib/tests/test_pretty.py:217–221  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

215 self.assertEqual(last2, [' 999,', ' ...)'])
216
217 def test_long_dict(self):
218 d = { n:n for n in range(10000) }
219 p = pretty.pretty(d)
220 last2 = p.rsplit('\n', 2)[-2:]
221 self.assertEqual(last2, [' 999: 999,', ' ...}'])
222
223 def test_unbound_method(self):
224 output = pretty.pretty(MyObj.somemethod)

Callers

nothing calls this directly

Calls 1

prettyMethod · 0.80

Tested by

no test coverage detected