summaryrefslogtreecommitdiff
path: root/tests/auth_tests
diff options
context:
space:
mode:
authorHasan Ramezani <hasan.r67@gmail.com>2020-01-30 10:35:02 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-01-30 11:19:50 +0100
commit579f33eb794fd868512226ecf452fc2bb0628a7c (patch)
tree28d36394234b57e7ef056e67715204bdd1d0625c /tests/auth_tests
parentefc1c73bf511cbebf03fa5b13fa3a98718daf928 (diff)
Replaced assertWarns() with SimpleTestCase.assertWarnsMessage() in tests.
Diffstat (limited to 'tests/auth_tests')
-rw-r--r--tests/auth_tests/test_hashers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auth_tests/test_hashers.py b/tests/auth_tests/test_hashers.py
index a837c967a7..754149dcea 100644
--- a/tests/auth_tests/test_hashers.py
+++ b/tests/auth_tests/test_hashers.py
@@ -462,7 +462,7 @@ class BasePasswordHasherTests(SimpleTestCase):
def test_harden_runtime(self):
msg = 'subclasses of BasePasswordHasher should provide a harden_runtime() method'
- with self.assertWarns(Warning, msg=msg):
+ with self.assertWarnsMessage(Warning, msg):
self.hasher.harden_runtime('password', 'encoded')
def test_must_update(self):