From bbd688b4d205f39855af87b1ded214d2e9323399 Mon Sep 17 00:00:00 2001 From: Camilo Nova Date: Mon, 5 May 2014 16:11:54 -0500 Subject: [PATCH] Remove hardcoded url path --- axes/tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/axes/tests.py b/axes/tests.py index 11706e6..895343f 100644 --- a/axes/tests.py +++ b/axes/tests.py @@ -112,7 +112,7 @@ class AccessAttemptTest(TestCase): def _successful_login(self, username, password): c = Client() - response = c.post('/admin/', { + response = c.post(reverse('admin:index'), { 'username': username, 'password': username, 'this_is_the_login_form': 1, @@ -122,7 +122,7 @@ class AccessAttemptTest(TestCase): def _unsuccessful_login(self, username): c = Client() - response = c.post('/admin/', { + response = c.post(reverse('admin:index'), { 'username': username, 'password': 'wrong', 'this_is_the_login_form': 1,