(self)
| 70 | |
| 71 | class TestMatchesIterator(unittest.TestCase): |
| 72 | def setUp(self): |
| 73 | self.matches = ["bobby", "bobbies", "bobberina"] |
| 74 | self.matches_iterator = repl.MatchesIterator() |
| 75 | self.matches_iterator.current_word = "bob" |
| 76 | self.matches_iterator.orig_line = "bob" |
| 77 | self.matches_iterator.orig_cursor_offset = len("bob") |
| 78 | self.matches_iterator.matches = self.matches |
| 79 | |
| 80 | def test_next(self): |
| 81 | self.assertEqual(next(self.matches_iterator), self.matches[0]) |
nothing calls this directly
no outgoing calls
no test coverage detected