mock_logger.level = logging.NOTSET
with mock.patch('logging.getLogger', return_value=mock_logger), \
mock.patch('time.sleep'), \
mock_logger.level = logging.NOTSET
with mock.patch('logging.getLogger', return_value=mock_logger), \
mock.patch('time.sleep'), \