def assert_did_not_log(self, levels=None, log_regex=".*"):
        if self.buf is None:
            return
        if levels:
            for level in levels:
                if level in self.buf:
                    assert_all_not_match_regex(log_regex, self.buf[level])
        else:
            assert_all_not_match_regex(log_regex, itertools.chain.from_iterable(self.buf.values()))
Asserts that the mock handler did not log some messages.
dataset/ETHPy150Open Yelp/Testify/testify/utils/mock_logging.py/MockHandler.assert_did_not_log