summaryrefslogtreecommitdiff
path: root/tests/auth_tests
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2017-02-02 20:43:21 -0500
committerTim Graham <timograham@gmail.com>2017-02-03 08:01:45 -0500
commit29f607927fe82e2c8baab171dfa8baf710cd9b83 (patch)
treef525c6c4784ccafe77e01f706093fa6f4a5c9481 /tests/auth_tests
parenta21ec12409a5b72d602cd03ee925b6ceb1cd5492 (diff)
Fixed spelling of "nonexistent".
Diffstat (limited to 'tests/auth_tests')
-rw-r--r--tests/auth_tests/templates/context_processors/auth_attrs_perm_in_perms.html4
-rw-r--r--tests/auth_tests/templates/context_processors/auth_attrs_perms.html4
-rw-r--r--tests/auth_tests/test_context_processors.py8
-rw-r--r--tests/auth_tests/test_decorators.py4
-rw-r--r--tests/auth_tests/test_deprecated_views.py2
-rw-r--r--tests/auth_tests/test_mixins.py4
-rw-r--r--tests/auth_tests/test_views.py2
7 files changed, 14 insertions, 14 deletions
diff --git a/tests/auth_tests/templates/context_processors/auth_attrs_perm_in_perms.html b/tests/auth_tests/templates/context_processors/auth_attrs_perm_in_perms.html
index 3a18cd7405..04f26e624b 100644
--- a/tests/auth_tests/templates/context_processors/auth_attrs_perm_in_perms.html
+++ b/tests/auth_tests/templates/context_processors/auth_attrs_perm_in_perms.html
@@ -1,4 +1,4 @@
{% if 'auth' in perms %}Has auth permissions{% endif %}
{% if 'auth.add_permission' in perms %}Has auth.add_permission permissions{% endif %}
-{% if 'nonexisting' in perms %}nonexisting perm found{% endif %}
-{% if 'auth.nonexisting' in perms %}auth.nonexisting perm found{% endif %}
+{% if 'nonexistent' in perms %}nonexistent perm found{% endif %}
+{% if 'auth.nonexistent' in perms %}auth.nonexistent perm found{% endif %}
diff --git a/tests/auth_tests/templates/context_processors/auth_attrs_perms.html b/tests/auth_tests/templates/context_processors/auth_attrs_perms.html
index 6f441afc10..b1c829bd98 100644
--- a/tests/auth_tests/templates/context_processors/auth_attrs_perms.html
+++ b/tests/auth_tests/templates/context_processors/auth_attrs_perms.html
@@ -1,4 +1,4 @@
{% if perms.auth %}Has auth permissions{% endif %}
{% if perms.auth.add_permission %}Has auth.add_permission permissions{% endif %}
-{% if perms.nonexisting %}nonexisting perm found{% endif %}
-{% if perms.auth.nonexisting in perms %}auth.nonexisting perm found{% endif %}
+{% if perms.nonexistent %}nonexistent perm found{% endif %}
+{% if perms.auth.nonexistent in perms %}auth.nonexistent perm found{% endif %}
diff --git a/tests/auth_tests/test_context_processors.py b/tests/auth_tests/test_context_processors.py
index 5b93800386..4c4652cd1b 100644
--- a/tests/auth_tests/test_context_processors.py
+++ b/tests/auth_tests/test_context_processors.py
@@ -44,9 +44,9 @@ class PermWrapperTests(SimpleTestCase):
perms = PermWrapper(MockUser())
# Works for modules and full permissions.
self.assertIn('mockapp', perms)
- self.assertNotIn('nonexisting', perms)
+ self.assertNotIn('nonexistent', perms)
self.assertIn('mockapp.someperm', perms)
- self.assertNotIn('mockapp.nonexisting', perms)
+ self.assertNotIn('mockapp.nonexistent', perms)
def test_permlookupdict_in(self):
"""
@@ -95,7 +95,7 @@ class AuthContextProcessorTests(TestCase):
response = self.client.get('/auth_processor_perms/')
self.assertContains(response, "Has auth permissions")
self.assertContains(response, "Has auth.add_permission permissions")
- self.assertNotContains(response, "nonexisting")
+ self.assertNotContains(response, "nonexistent")
def test_perm_in_perms_attrs(self):
u = User.objects.create_user(username='normal', password='secret')
@@ -107,7 +107,7 @@ class AuthContextProcessorTests(TestCase):
response = self.client.get('/auth_processor_perm_in_perms/')
self.assertContains(response, "Has auth permissions")
self.assertContains(response, "Has auth.add_permission permissions")
- self.assertNotContains(response, "nonexisting")
+ self.assertNotContains(response, "nonexistent")
def test_message_attrs(self):
self.client.force_login(self.superuser)
diff --git a/tests/auth_tests/test_decorators.py b/tests/auth_tests/test_decorators.py
index 55c422bdc6..befe5c4d27 100644
--- a/tests/auth_tests/test_decorators.py
+++ b/tests/auth_tests/test_decorators.py
@@ -97,7 +97,7 @@ class PermissionsRequiredDecoratorTest(TestCase):
def test_permissioned_denied_redirect(self):
- @permission_required(['auth_tests.add_customuser', 'auth_tests.change_customuser', 'non-existent-permission'])
+ @permission_required(['auth_tests.add_customuser', 'auth_tests.change_customuser', 'nonexistent-permission'])
def a_view(request):
return HttpResponse()
request = self.factory.get('/rand')
@@ -108,7 +108,7 @@ class PermissionsRequiredDecoratorTest(TestCase):
def test_permissioned_denied_exception_raised(self):
@permission_required([
- 'auth_tests.add_customuser', 'auth_tests.change_customuser', 'non-existent-permission'
+ 'auth_tests.add_customuser', 'auth_tests.change_customuser', 'nonexistent-permission'
], raise_exception=True)
def a_view(request):
return HttpResponse()
diff --git a/tests/auth_tests/test_deprecated_views.py b/tests/auth_tests/test_deprecated_views.py
index ba43140ebe..be3b990494 100644
--- a/tests/auth_tests/test_deprecated_views.py
+++ b/tests/auth_tests/test_deprecated_views.py
@@ -191,7 +191,7 @@ class PasswordResetTest(AuthViewsTestCase):
self.assertContains(response, "The password reset link was invalid")
def test_confirm_invalid_user(self):
- # We get a 200 response for a non-existent user, not a 404
+ # We get a 200 response for a nonexistent user, not a 404
response = self.client.get('/reset/123456/1-1/')
self.assertContains(response, "The password reset link was invalid")
diff --git a/tests/auth_tests/test_mixins.py b/tests/auth_tests/test_mixins.py
index 0a0c5ccdf4..70e8f27675 100644
--- a/tests/auth_tests/test_mixins.py
+++ b/tests/auth_tests/test_mixins.py
@@ -238,7 +238,7 @@ class PermissionsRequiredMixinTests(TestCase):
def test_permissioned_denied_redirect(self):
class AView(PermissionRequiredMixin, EmptyResponseView):
permission_required = [
- 'auth_tests.add_customuser', 'auth_tests.change_customuser', 'non-existent-permission',
+ 'auth_tests.add_customuser', 'auth_tests.change_customuser', 'nonexistent-permission',
]
request = self.factory.get('/rand')
@@ -249,7 +249,7 @@ class PermissionsRequiredMixinTests(TestCase):
def test_permissioned_denied_exception_raised(self):
class AView(PermissionRequiredMixin, EmptyResponseView):
permission_required = [
- 'auth_tests.add_customuser', 'auth_tests.change_customuser', 'non-existent-permission',
+ 'auth_tests.add_customuser', 'auth_tests.change_customuser', 'nonexistent-permission',
]
raise_exception = True
diff --git a/tests/auth_tests/test_views.py b/tests/auth_tests/test_views.py
index cee3383f05..7436473635 100644
--- a/tests/auth_tests/test_views.py
+++ b/tests/auth_tests/test_views.py
@@ -234,7 +234,7 @@ class PasswordResetTest(AuthViewsTestCase):
self.assertContains(response, "The password reset link was invalid")
def test_confirm_invalid_user(self):
- # A non-existent user returns a 200 response, not a 404.
+ # A nonexistent user returns a 200 response, not a 404.
response = self.client.get('/reset/123456/1-1/')
self.assertContains(response, "The password reset link was invalid")