MCPcopy Create free account
hub / github.com/bpython/bpython / test_is_at_start

Method test_is_at_start

bpython/test/test_history.py:13–19  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

11 self.history = History(f"#{x}" for x in range(1000))
12
13 def test_is_at_start(self):
14 self.history.first()
15
16 self.assertNotEqual(self.history.index, 0)
17 self.assertTrue(self.history.is_at_end)
18 self.history.forward()
19 self.assertFalse(self.history.is_at_end)
20
21 def test_is_at_end(self):
22 self.history.last()

Callers

nothing calls this directly

Calls 2

firstMethod · 0.80
forwardMethod · 0.80

Tested by

no test coverage detected