def test_cooling_off(self):
        self.test_failure_limit_by_ip_once()
        # Wait for the cooling off period
        time.sleep(config.COOLOFF_TIME)

        if config.MOCK_REDIS:
            # mock redis require that we expire on our own
            get_redis_connection().do_expire()  # pragma: no cover
        # It should be possible to login again, make sure it is.
        self.test_valid_login()
Wait for an event on a channel.
dataset/ETHPy150Open kencochrane/django-defender/defender/tests.py/AccessAttemptTest.test_cooling_off--crossover with--dataset/ETHPy150Open celery/kombu/kombu/transport/amqplib.py/Connection.drain_events