From da0b2554ec8e3ef134237b773baed06cd5f8a82f Mon Sep 17 00:00:00 2001 From: Markus Holtermann Date: Sun, 14 Apr 2019 15:00:48 +0200 Subject: Renamed camelCaseTestMethods to snake_case_test_methods --- tests/auth_tests/test_decorators.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/auth_tests') 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): -- cgit v1.3