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

Method test_back

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

Source from the content-addressed store, hash-verified

38 self.assertFalse(self.history.is_at_end)
39
40 def test_back(self):
41 self.assertEqual(self.history.back(), "#999")
42 self.assertNotEqual(self.history.back(), "#999")
43 self.assertEqual(self.history.back(), "#997")
44 for x in range(997):
45 self.history.back()
46 self.assertEqual(self.history.back(), "#0")
47
48 def test_forward(self):
49 self.history.first()

Callers

nothing calls this directly

Calls 1

backMethod · 0.80

Tested by

no test coverage detected