def test_check_password(self): self.assertEqual( check_password( 'b2e7bcc53f44ae4e5ca7c67108cd04bcfa2d8e40e2170ea22d18ecef' 'd70e7a74:7d45a8ddea174d80b453f23824576cda', '42' ), True)
def test_hash_and_check_password(self): hashed_password = hash_password('42') self.assertEqual(check_password(hashed_password, '42'), True)