Lines Matching refs:patterns
154 def complete_from_to(self, str_input, patterns, turn_off_re_match=False):
155 """Test that the completion mechanism completes str_input to patterns,
156 where patterns could be a pattern-string or a list of pattern-strings"""
157 # Patterns should not be None in order to proceed.
158 self.assertFalse(patterns is None)
160 # below, if not, make a list out of the singleton string. If patterns
163 if not isinstance(patterns, list):
164 patterns = [patterns]
201 for p in patterns:
202 # Test that str_input completes to our patterns or substrings.
209 patterns = [p])