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