def does_not_match(self, pattern):
        if not isinstance(self.val, str_types):
            raise TypeError('val is not a string')
        if not isinstance(pattern, str_types):
            raise TypeError('given pattern arg must be a string')
        if len(pattern) == 0:
            raise ValueError('given pattern arg must not be empty')
        if re.search(pattern, self.val) is not None:
            self._err('Expected <%s> to not match pattern <%s>, but did.' % (self.val, pattern))
        return self
Take a string and return a filter to be used on the SearchQuerySet.
dataset/ETHPy150Open ActivisionGameScience/assertpy/assertpy/assertpy.py/AssertionBuilder.does_not_match--crossover with--dataset/ETHPy150Open rvanlaar/easy-transifex/src/transifex/transifex/txcommon/haystack_utils.py/fulltext_project_search_filter