@contextlib.contextmanager
def assertNoLogs(self, logger='websockets', level=logging.ERROR):
    '\n        No message is logged on the given logger with at least the given level.\n\n        '
    with self.assertLogs(logger, level) as logs:
        logging.getLogger(logger).log(level, 'dummy')
        (yield)
    level_name = logging.getLevelName(level)
    self.assertEqual(logs.output, [f'{level_name}:{logger}:dummy'])
No message is logged on the given logger with at least the given level.
@contextlib.contextmanager
def assertNoLogs(self, logger='websockets', level=logging.ERROR):
    '\n        \n\n        '
    with self.assertLogs(logger, level) as logs:
        logging.getLogger(logger).log(level, 'dummy')
        (yield)
    level_name = logging.getLevelName(level)
    self.assertEqual(logs.output, [f'{level_name}:{logger}:dummy'])