async def test_no_matching_creds_for_proof_req(self):
    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_NAMES, ident='indy')])
    px_rec_in = V20PresExRecord(pres_request=pres_request.serialize())
    get_creds = async_mock.CoroutineMock(return_value=())
    self.holder.get_credentials_for_presentation_request_by_referent = get_creds
    with self.assertRaises(ValueError):
        (await indy_proof_req_preview2indy_requested_creds(INDY_PROOF_REQ_NAMES, preview=None, holder=self.holder))
    get_creds = async_mock.CoroutineMock(return_value=({'cred_info': {'referent': 'dummy_reft'}, 'attrs': {'player': 'Richie Knucklez', 'screenCapture': 'aW1hZ2luZSBhIHNjcmVlbiBjYXB0dXJl', 'highScore': '1234560'}},))
    self.holder.get_credentials_for_presentation_request_by_referent = get_creds
async def test_no_matching_creds_for_proof_req(self):
    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_NAMES, ident='indy')])
    px_rec_in = V20PresExRecord(pres_request=pres_request.serialize())
    get_creds = async_mock.CoroutineMock(return_value=())
    self.holder.get_credentials_for_presentation_request_by_referent = get_creds
    with self.assertRaises(ValueError):
        (await indy_proof_req_preview2indy_requested_creds(INDY_PROOF_REQ_NAMES, preview=None, holder=self.holder))
    get_creds = async_mock.CoroutineMock(return_value=({'cred_info': {'referent': 'dummy_reft'}, 'attrs': {'player': 'Richie Knucklez', 'screenCapture': 'aW1hZ2luZSBhIHNjcmVlbiBjYXB0dXJl', 'highScore': '1234560'}},))
    self.holder.get_credentials_for_presentation_request_by_referent = get_creds