def setUp(self): self.matches = ['bobby', 'bobbies', 'bobberina'] self.matches_iterator = repl.MatchesIterator() self.matches_iterator.current_word = 'bob' self.matches_iterator.orig_line = 'bob' self.matches_iterator.orig_cursor_offset = len('bob') self.matches_iterator.matches = self.matches
def setUp(self): self.matches = ["bobby", "bobbies", "bobberina"] self.matches_iterator = repl.MatchesIterator() self.matches_iterator.current_word = "bob" self.matches_iterator.orig_line = "bob" self.matches_iterator.orig_cursor_offset = len("bob") self.matches_iterator.matches = self.matches
def setup_matches(tab=False): if self.repl.cw() and len(self.repl.cw().split('.')) == 1: self.repl.matches = ["foobar", "foofoobar"] else: self.repl.matches = ["Foo.foobar", "Foo.foofoobar"] self.repl.matches_iter = repl.MatchesIterator() self.repl.matches_iter.update(self.repl.cw(), self.repl.matches)
def setUp(self): self.matches = ['bobby', 'bobbies', 'bobberina'] self.matches_iterator = repl.MatchesIterator(current_word='bob', matches=self.matches)