Fixed typo in "pbkdf2" test names.
This commit is contained in:
parent
00adec6d5f
commit
c21410aeeb
|
@ -45,7 +45,7 @@ class TestUtilsHashPass(SimpleTestCase):
|
||||||
self.assertTrue(check_password('', blank_encoded))
|
self.assertTrue(check_password('', blank_encoded))
|
||||||
self.assertFalse(check_password(' ', blank_encoded))
|
self.assertFalse(check_password(' ', blank_encoded))
|
||||||
|
|
||||||
def test_pkbdf2(self):
|
def test_pbkdf2(self):
|
||||||
encoded = make_password('lètmein', 'seasalt', 'pbkdf2_sha256')
|
encoded = make_password('lètmein', 'seasalt', 'pbkdf2_sha256')
|
||||||
self.assertEqual(encoded,
|
self.assertEqual(encoded,
|
||||||
'pbkdf2_sha256$24000$seasalt$V9DfCAVoweeLwxC/L2mb+7swhzF0XYdyQMqmusZqiTc=')
|
'pbkdf2_sha256$24000$seasalt$V9DfCAVoweeLwxC/L2mb+7swhzF0XYdyQMqmusZqiTc=')
|
||||||
|
@ -240,7 +240,7 @@ class TestUtilsHashPass(SimpleTestCase):
|
||||||
self.assertFalse(is_password_usable('lètmein_badencoded'))
|
self.assertFalse(is_password_usable('lètmein_badencoded'))
|
||||||
self.assertFalse(is_password_usable(''))
|
self.assertFalse(is_password_usable(''))
|
||||||
|
|
||||||
def test_low_level_pkbdf2(self):
|
def test_low_level_pbkdf2(self):
|
||||||
hasher = PBKDF2PasswordHasher()
|
hasher = PBKDF2PasswordHasher()
|
||||||
encoded = hasher.encode('lètmein', 'seasalt2')
|
encoded = hasher.encode('lètmein', 'seasalt2')
|
||||||
self.assertEqual(encoded,
|
self.assertEqual(encoded,
|
||||||
|
|
Loading…
Reference in New Issue