def test_verify_password(self): self.assertTrue(users.verify_password("secret", users.hash_password("secret"))) self.assertTrue(users.verify_password("abcd", users.hash_password("abcd")))
def test_hash_password(self): shorthash = users.hash_password("abcd") self.assertEquals(len(shorthash),87) secrethash = users.hash_password("secret") self.assertEquals(len(secrethash),87)