def notfind_in(self, what, where, flags=None, escape=False, flat=False):
        """
        Assert that ``what`` not found in ``where``.

        This method is negate version of ``TestCase.find_in`` and supports
        all keywords and modes from it exclude of ``count``. Also in regular
        expression mode ``re.search`` function used instead of ``re.finditer``
        cause we don't need to store matched groups.

        If ``what`` string found, ``AssertionError`` would be raised.
        """
        message = 'Matched %r in %r' % (what, where)

        if not flat:
            if escape:
                what = re.escape(what)

            regexp = re.compile(what, process_re_flags(flags))
            assert not regexp.search(where), message
        else:
            assert not what in where, message

        return True
dataset/ETHPy150Open playpauseandstop/tddspry/tddspry/cases.py/TestCase.notfind_in/original