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