Did I find the right examples for you? yes no

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/d/j/django-failedloginblocker-1.0.1/failedloginblocker/tests.py   django-failedloginblocker(Download)
 
        self.client.login(**credentials)
        failed_attempt = FailedAttempt.objects.all()[0]
        self.assertEqual(self.test_user.username, failed_attempt.username)
        self.assertEqual(1, failed_attempt.failures)
 
        self.client.login(**credentials)
        failed_attempt = FailedAttempt.objects.all()[0]
 
        self.client.login(**credentials)
        failed_attempt = FailedAttempt.objects.all()[0]
        self.assertEqual(3, failed_attempt.failures)