self.matches_iterator should be False at start, then True once we active a match.
(self)
| 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, |
| 102 | then True once we active a match. |
| 103 | """ |
| 104 | self.assertFalse(self.matches_iterator) |
| 105 | next(self.matches_iterator) |
| 106 | self.assertTrue(self.matches_iterator) |
| 107 | |
| 108 | def test_iter(self): |
| 109 | slice = islice(self.matches_iterator, 0, 9) |
nothing calls this directly
no outgoing calls
no test coverage detected