def test_encrypt2(self): p1 = encrypt("prueba") assert verify("prueba", p1) assert verify( "111111", "biicode$E4IwJiQEwJgzRkiJcc7Z2w$t7XxsRJrXnPeQmyfNtyNvh32xK2WTSiguCv5j9Nxh6A44lXTOoSjvHTfW2Vbdpi9YlOPypDo6Z1ssGnRizfk/g" )
def valid_password(self, plain_password): return verify(plain_password, self._encrypted_password)
def test_encrypt1(self): encrypted = encrypt("mandanga") self.assertTrue(verify("mandanga", encrypted)) self.assertFalse(verify("", ""))
def test_encrypt2(self): p1 = encrypt("prueba") assert verify("prueba", p1) assert verify("111111", "biicode$E4IwJiQEwJgzRkiJcc7Z2w$t7XxsRJrXnPeQmyfNtyNvh32xK2WTSiguCv5j9Nxh6A44lXTOoSjvHTfW2Vbdpi9YlOPypDo6Z1ssGnRizfk/g")
def validate_password(password, encrypted_password): return verify(password, encrypted_password)