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

Method test_previous

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

Source from the content-addressed store, hash-verified

88 self.assertNotEqual(next(self.matches_iterator), self.matches[1])
89
90 def test_previous(self):
91 self.assertEqual(self.matches_iterator.previous(), self.matches[2])
92
93 for x in range(len(self.matches) - 1):
94 self.matches_iterator.previous()
95
96 self.assertNotEqual(self.matches_iterator.previous(), self.matches[0])
97 self.assertEqual(self.matches_iterator.previous(), self.matches[1])
98 self.assertEqual(self.matches_iterator.previous(), self.matches[0])
99
100 def test_nonzero(self):
101 """self.matches_iterator should be False at start,

Callers

nothing calls this directly

Calls 1

previousMethod · 0.80

Tested by

no test coverage detected