MCPcopy Create free account
hub / github.com/bpython/bpython / setUp

Method setUp

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

Source from the content-addressed store, hash-verified

70
71class 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])

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected