summaryrefslogtreecommitdiff
path: root/tests/auth_tests/test_views.py
diff options
context:
space:
mode:
authorJosh Soref <jsoref@users.noreply.github.com>2015-12-02 23:55:50 +0000
committerTim Graham <timograham@gmail.com>2015-12-03 12:48:24 -0500
commit93452a70e8a62c7408eeded444f5088d4a26212d (patch)
treedfc64c81f0610e45650350e2d41918f5913ed098 /tests/auth_tests/test_views.py
parentb6dd0afead80a17d0ac8c3ba35c510afac32a0b8 (diff)
Fixed many spelling mistakes in code, comments, and docs.
Diffstat (limited to 'tests/auth_tests/test_views.py')
-rw-r--r--tests/auth_tests/test_views.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/auth_tests/test_views.py b/tests/auth_tests/test_views.py
index 7450bca7bf..86c2accaec 100644
--- a/tests/auth_tests/test_views.py
+++ b/tests/auth_tests/test_views.py
@@ -543,7 +543,7 @@ class LoginTest(AuthViewsTestCase):
for bad_url in ('http://example.com',
'http:///example.com',
'https://example.com',
- 'ftp://exampel.com',
+ 'ftp://example.com',
'///example.com',
'//example.com',
'javascript:alert("XSS")'):
@@ -564,7 +564,7 @@ class LoginTest(AuthViewsTestCase):
# These URLs *should* still pass the security check
for good_url in ('/view/?param=http://example.com',
'/view/?param=https://example.com',
- '/view?param=ftp://exampel.com',
+ '/view?param=ftp://example.com',
'view/?param=//example.com',
'https://testserver/',
'HTTPS://testserver/',
@@ -830,7 +830,7 @@ class LogoutTest(AuthViewsTestCase):
for bad_url in ('http://example.com',
'http:///example.com',
'https://example.com',
- 'ftp://exampel.com',
+ 'ftp://example.com',
'///example.com',
'//example.com',
'javascript:alert("XSS")'):
@@ -849,7 +849,7 @@ class LogoutTest(AuthViewsTestCase):
# These URLs *should* still pass the security check
for good_url in ('/view/?param=http://example.com',
'/view/?param=https://example.com',
- '/view?param=ftp://exampel.com',
+ '/view?param=ftp://example.com',
'view/?param=//example.com',
'https://testserver/',
'HTTPS://testserver/',
@@ -1016,6 +1016,6 @@ class UUIDUserTests(TestCase):
})
self.assertRedirects(response, user_change_url)
row = LogEntry.objects.latest('id')
- self.assertEqual(row.user_id, 1) # harcoded in CustomUserAdmin.log_change()
+ self.assertEqual(row.user_id, 1) # hardcoded in CustomUserAdmin.log_change()
self.assertEqual(row.object_id, str(u.pk))
self.assertEqual(row.change_message, 'Changed password.')