def test_failure_limit_once(self):
        for i in range(1, FAILURE_LIMIT):  # test until one try before the limit
            response = self._login()
            # Check if we are in the same login page
            self.assertContains(response, self.LOGIN_FORM_KEY)

        # So, we shouldn't have gotten a lock-out yet.
        # But we should get one now
        response = self._login()
        self.assertContains(response, self.LOCKED_MESSAGE)
Generate a signed token unique to this user.
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/django-axes-1.4.0/axes/tests.py/AccessAttemptTest.test_failure_limit_once--crossover with--dataset/ETHPy150Open googleanalytics/google-analytics-super-proxy/src/controllers/util/access_control.py/GetXsrfToken