def test_hashpw(self): """ Test the hashpw function. """ salt = bcrypt.gensalt() hash = bcrypt.hashpw(Config.password, salt) assert hash == hashpw(Config.password, salt)
def test_hashcmp(self): """ Test the hashcmp function. """ hash = hashpw(Config.password) assert hashcmp(hash, Config.password)