Example #1
0
 def test_similar_passwords_are_unique_without_salt(self):
     self.assertNotEqual(passwd.hash(password),
                         passwd.hash('cookiemonseterMM'))
Example #2
0
 def test_new_password_with_known_hash(self):
     self.assertEquals(sha1, passwd.hash(password, salt=salt))