Beispiel #1
0
 def test_hash_and_check_password(self):
     hashed_password = hash_password('42')
     self.assertEqual(check_password(hashed_password, '42'), True)
Beispiel #2
0
 def test_hash_password(self):
     hashed_password = hash_password('42')
     self.assertEqual(len(hashed_password), 97)