def test_blocked_username_cannot_login(self):
        for i in range(0, config.FAILURE_LIMIT + 1):
            ip = '74.125.239.{0}.'.format(i)
            response = self._login(username=VALID_USERNAME, remote_addr=ip)

        # try to login with a different ip
        response = self._login(username=VALID_USERNAME, remote_addr='8.8.8.8')
        self.assertContains(response, self.LOCKED_MESSAGE)
Test an user with blocked username cannot login using
dataset/ETHPy150Open kencochrane/django-defender/defender/tests.py/AccessAttemptTest.test_blocked_username_cannot_login