async def test_receive_pres_ack(self):
    conn_record = async_mock.MagicMock(connection_id=CONN_ID)
    px_rec_dummy = V20PresExRecord()
    message = async_mock.MagicMock()
    with async_mock.patch.object(V20PresExRecord, 'save', autospec=True) as save_ex, async_mock.patch.object(V20PresExRecord, 'retrieve_by_tag_filter', autospec=True) as retrieve_ex:
        retrieve_ex.return_value = px_rec_dummy
        px_rec_out = (await self.manager.receive_pres_ack(message, conn_record))
        save_ex.assert_called_once()
        assert (px_rec_out.state == V20PresExRecord.STATE_DONE)
async def test_receive_pres_ack(self):
    conn_record = async_mock.MagicMock(connection_id=CONN_ID)
    px_rec_dummy = V20PresExRecord()
    message = async_mock.MagicMock()
    with async_mock.patch.object(V20PresExRecord, 'save', autospec=True) as save_ex, async_mock.patch.object(V20PresExRecord, 'retrieve_by_tag_filter', autospec=True) as retrieve_ex:
        retrieve_ex.return_value = px_rec_dummy
        px_rec_out = (await self.manager.receive_pres_ack(message, conn_record))
        save_ex.assert_called_once()
        assert (px_rec_out.state == V20PresExRecord.STATE_DONE)