def test_similar_passwords_are_unique_without_salt(self): self.assertNotEqual(passwd.hash(password), passwd.hash('cookiemonseterMM'))
def test_new_password_with_known_hash(self): self.assertEquals(sha1, passwd.hash(password, salt=salt))