mirror of
https://github.com/django/django.git
synced 2025-09-26 20:19:16 +00:00
Replaced assertWarns() with SimpleTestCase.assertWarnsMessage() in tests.
This commit is contained in:
parent
efc1c73bf5
commit
579f33eb79
2 changed files with 7 additions and 4 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue