def create_proof_request(self, source_id, name, proof_attr): res = Vcxdemo.get_loop().run_until_complete( asyncio.gather(Proof.create(source_id, name, proof_attr))) if len(res) > 0: self.proof_requests[source_id] = res[0]
async def test_serialize_with_bad_handle(): with pytest.raises(VcxError) as e: proof = Proof(source_id) proof.handle = 0 await proof.serialize() assert ErrorCode.InvalidProofHandle == e.value.error_code
async def test_update_state_with_invalid_handle(): with pytest.raises(VcxError) as e: proof = Proof(source_id) proof.handle = 0 await proof.update_state() assert ErrorCode.InvalidProofHandle == e.value.error_code