async def test_create_pres_proof_req_non_revoc_interval_none(self):
    indy_proof_req_vcx = deepcopy(INDY_PROOF_REQ_NAME)
    indy_proof_req_vcx['non_revoked'] = None
    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_vcx, ident='indy')])
    px_rec_in = V20PresExRecord(pres_request=pres_request.serialize())
    more_magic_rr = async_mock.MagicMock(get_or_fetch_local_tails_path=async_mock.CoroutineMock(return_value='/tmp/sample/tails/path'))
    with async_mock.patch.object(V20PresExRecord, 'save', autospec=True) as save_ex, async_mock.patch.object(test_module, 'AttachDecorator', autospec=True) as mock_attach_decorator, async_mock.patch.object(test_module, 'RevocationRegistry', autospec=True) as mock_rr:
        mock_rr.from_definition = async_mock.MagicMock(return_value=more_magic_rr)
        mock_attach_decorator.data_base64 = async_mock.MagicMock(return_value=mock_attach_decorator)
        req_creds = (await indy_proof_req_preview2indy_requested_creds(indy_proof_req_vcx, preview=None, holder=self.holder))
        assert (not req_creds['self_attested_attributes'])
        assert (len(req_creds['requested_attributes']) == 2)
        assert (len(req_creds['requested_predicates']) == 1)
        (px_rec_out, pres_msg) = (await self.manager.create_pres(px_rec_in, req_creds))
        save_ex.assert_called_once()
        assert (px_rec_out.state == V20PresExRecord.STATE_PRESENTATION_SENT)
async def test_create_pres_proof_req_non_revoc_interval_none(self):
    indy_proof_req_vcx = deepcopy(INDY_PROOF_REQ_NAME)
    indy_proof_req_vcx['non_revoked'] = None
    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_vcx, ident='indy')])
    px_rec_in = V20PresExRecord(pres_request=pres_request.serialize())
    more_magic_rr = async_mock.MagicMock(get_or_fetch_local_tails_path=async_mock.CoroutineMock(return_value='/tmp/sample/tails/path'))
    with async_mock.patch.object(V20PresExRecord, 'save', autospec=True) as save_ex, async_mock.patch.object(test_module, 'AttachDecorator', autospec=True) as mock_attach_decorator, async_mock.patch.object(test_module, 'RevocationRegistry', autospec=True) as mock_rr:
        mock_rr.from_definition = async_mock.MagicMock(return_value=more_magic_rr)
        mock_attach_decorator.data_base64 = async_mock.MagicMock(return_value=mock_attach_decorator)
        req_creds = (await indy_proof_req_preview2indy_requested_creds(indy_proof_req_vcx, preview=None, holder=self.holder))
        assert (not req_creds['self_attested_attributes'])
        assert (len(req_creds['requested_attributes']) == 2)
        assert (len(req_creds['requested_predicates']) == 1)
        (px_rec_out, pres_msg) = (await self.manager.create_pres(px_rec_in, req_creds))
        save_ex.assert_called_once()
        assert (px_rec_out.state == V20PresExRecord.STATE_PRESENTATION_SENT)