summaryrefslogtreecommitdiff
path: root/tests/auth_tests
diff options
context:
space:
mode:
authorMarkus Holtermann <info@markusholtermann.eu>2019-04-14 15:00:48 +0200
committerMarkus Holtermann <info@markusholtermann.eu>2019-04-14 16:14:14 +0200
commitda0b2554ec8e3ef134237b773baed06cd5f8a82f (patch)
treeb6039588aaa8271f5150b0ec376b8006037751f2 /tests/auth_tests
parent2e38f2015aba224b68a91a3012b87223f3046bb6 (diff)
Renamed camelCaseTestMethods to snake_case_test_methods
Diffstat (limited to 'tests/auth_tests')
-rw-r--r--tests/auth_tests/test_decorators.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/auth_tests/test_decorators.py b/tests/auth_tests/test_decorators.py
index fbccebea57..469b1ad0ac 100644
--- a/tests/auth_tests/test_decorators.py
+++ b/tests/auth_tests/test_decorators.py
@@ -15,7 +15,7 @@ class LoginRequiredTestCase(AuthViewsTestCase):
Tests the login_required decorators
"""
- def testCallable(self):
+ def test_callable(self):
"""
login_required is assignable to callable objects.
"""
@@ -24,7 +24,7 @@ class LoginRequiredTestCase(AuthViewsTestCase):
pass
login_required(CallableView())
- def testView(self):
+ def test_view(self):
"""
login_required is assignable to normal views.
"""
@@ -32,7 +32,7 @@ class LoginRequiredTestCase(AuthViewsTestCase):
pass
login_required(normal_view)
- def testLoginRequired(self, view_url='/login_required/', login_url=None):
+ def test_login_required(self, view_url='/login_required/', login_url=None):
"""
login_required works on a simple view wrapped in a login_required
decorator.
@@ -46,12 +46,12 @@ class LoginRequiredTestCase(AuthViewsTestCase):
response = self.client.get(view_url)
self.assertEqual(response.status_code, 200)
- def testLoginRequiredNextUrl(self):
+ def test_login_required_next_url(self):
"""
login_required works on a simple view wrapped in a login_required
decorator with a login_url set.
"""
- self.testLoginRequired(view_url='/login_required_login_url/', login_url='/somewhere/')
+ self.test_login_required(view_url='/login_required_login_url/', login_url='/somewhere/')
class PermissionsRequiredDecoratorTest(TestCase):