Ejemplo n.º 1
0
 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
Ejemplo n.º 2
0
 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
Ejemplo n.º 3
0
        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)
Ejemplo n.º 4
0
 def setUp(self):
     self.matches = ['bobby', 'bobbies', 'bobberina']
     self.matches_iterator = repl.MatchesIterator(current_word='bob',
                                                  matches=self.matches)