def does_not_match(self, pattern):
if not isinstance(self.val, str_types):<EOL><INDENT>raise TypeError('<STR_LIT>')<EOL><DEDENT>if not isinstance(pattern, str_types):<EOL><INDENT>raise TypeError('<STR_LIT>')<EOL><DEDENT>if len(pattern) == <NUM_LIT:0>:<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>if re.search(pattern, self.val) is not None:<EOL><INDENT>self._err('<STR_LIT>' % (self.val, pattern))<EOL><DEDENT>return self<EOL>
Asserts that val is string and does not match regex pattern.