MCPcopy Index your code
hub / github.com/bpython/bpython / test_current

Method test_current

bpython/test/test_repl.py:112–116  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

110 self.assertEqual(list(slice), self.matches * 3)
111
112 def test_current(self):
113 with self.assertRaises(ValueError):
114 self.matches_iterator.current()
115 next(self.matches_iterator)
116 self.assertEqual(self.matches_iterator.current(), self.matches[0])
117
118 def test_update(self):
119 slice = islice(self.matches_iterator, 0, 3)

Callers

nothing calls this directly

Calls 1

currentMethod · 0.80

Tested by

no test coverage detected