async def test_update_state_with_invalid_handle(): with pytest.raises(VcxError) as e: disclosed_proof = DisclosedProof(source_id) disclosed_proof.handle = 0 await disclosed_proof.update_state() assert ErrorCode.InvalidDisclosedProofHandle == e.value.error_code