MCPcopy Create free account
hub / github.com/python/cpython / test_history_prev_next

Method test_history_prev_next

Lib/idlelib/idle_test/test_history.py:163–168  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

161 self.fetch_test(True, line1, 'a =', 0) # prefix is reset
162
163 def test_history_prev_next(self):
164 # Minimally test functions bound to events
165 self.history.history_prev('dummy event')
166 self.assertEqual(self.history.pointer, 1)
167 self.history.history_next('dummy event')
168 self.assertEqual(self.history.pointer, None)
169
170
171if __name__ == '__main__':

Callers

nothing calls this directly

Calls 3

history_prevMethod · 0.80
history_nextMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected