async def test_verify_pres_with_revocation(self):
    indy_proof = {'proof': {'proofs': []}, 'requested_proof': {'revealed_attrs': {'0_player_uuid': {'sub_proof_index': 0, 'raw': 'Richie Knucklez', 'encoded': '12345678901234567890'}, '1_screencapture_uuid': {'sub_proof_index': 0, 'raw': 'cG90YXRv', 'encoded': '98765432109876543210'}}, 'self_attested_attrs': {}, 'unrevealed_attrs': {}, 'predicates': {'0_highscore_GE_uuid': {'sub_proof_index': 0}}}, 'identifiers': [{'schema_id': S_ID, 'cred_def_id': CD_ID, 'rev_reg_id': RR_ID, 'timestamp': NOW}]}
    pres_request = V20PresRequest(formats=[V20PresFormat(attach_id='indy', format_=ATTACHMENT_FORMAT[PRES_20_REQUEST][V20PresFormat.Format.INDY.api])], request_presentations_attach=[AttachDecorator.data_base64(INDY_PROOF_REQ_NAME, ident='indy')])
    pres = V20Pres(formats=[V20PresFormat(attach_id='indy', format_=ATTACHMENT_FORMAT[PRES_20][V20PresFormat.Format.INDY.api])], presentations_attach=[AttachDecorator.data_base64(indy_proof, ident='indy')])
    px_rec_in = V20PresExRecord(pres_request=pres_request.serialize(), pres=pres.serialize())
    with async_mock.patch.object(V20PresExRecord, 'save', autospec=True) as save_ex:
        px_rec_out = (await self.manager.verify_pres(px_rec_in))
        save_ex.assert_called_once()
        assert (px_rec_out.state == V20PresExRecord.STATE_DONE)
async def test_verify_pres_with_revocation(self):
    indy_proof = {'proof': {'proofs': []}, 'requested_proof': {'revealed_attrs': {'0_player_uuid': {'sub_proof_index': 0, 'raw': 'Richie Knucklez', 'encoded': '12345678901234567890'}, '1_screencapture_uuid': {'sub_proof_index': 0, 'raw': 'cG90YXRv', 'encoded': '98765432109876543210'}}, 'self_attested_attrs': {}, 'unrevealed_attrs': {}, 'predicates': {'0_highscore_GE_uuid': {'sub_proof_index': 0}}}, 'identifiers': [{'schema_id': S_ID, 'cred_def_id': CD_ID, 'rev_reg_id': RR_ID, 'timestamp': NOW}]}
    pres_request = V20PresRequest(formats=[V20PresFormat(attach_id='indy', format_=ATTACHMENT_FORMAT[PRES_20_REQUEST][V20PresFormat.Format.INDY.api])], request_presentations_attach=[AttachDecorator.data_base64(INDY_PROOF_REQ_NAME, ident='indy')])
    pres = V20Pres(formats=[V20PresFormat(attach_id='indy', format_=ATTACHMENT_FORMAT[PRES_20][V20PresFormat.Format.INDY.api])], presentations_attach=[AttachDecorator.data_base64(indy_proof, ident='indy')])
    px_rec_in = V20PresExRecord(pres_request=pres_request.serialize(), pres=pres.serialize())
    with async_mock.patch.object(V20PresExRecord, 'save', autospec=True) as save_ex:
        px_rec_out = (await self.manager.verify_pres(px_rec_in))
        save_ex.assert_called_once()
        assert (px_rec_out.state == V20PresExRecord.STATE_DONE)