Fix formatting.

This commit is contained in:
Vladimir Bolshakov 2016-02-01 19:07:16 +03:00
parent f4e0ddc032
commit 948877c156

View file

@ -18,7 +18,6 @@ from .connection import parse_redis_url, get_redis_connection
from .models import AccessAttempt
from .test import DefenderTestCase, DefenderTransactionTestCase
# Django >= 1.7 compatibility
try:
LOGIN_FORM_KEY = '<form action="/admin/login/" method="post"'
@ -614,7 +613,7 @@ class AccessAttemptTest(DefenderTestCase):
# we shouldn't be blocked.
# same IP different, usernames
ip = '74.125.239.60'
for i in range(0, config.FAILURE_LIMIT+10):
for i in range(0, config.FAILURE_LIMIT + 10):
login_username = u"{0}{1}".format(username, i)
response = self._login(username=login_username, remote_addr=ip)
# Check if we are in the same login page