async def test_list_mediation_requests(self):
    self.request.query = {}
    self.context.session = async_mock.CoroutineMock()
    with async_mock.patch.object(test_module.MediationRecord, 'query', async_mock.CoroutineMock(return_value=[self.mock_record])) as mock_query, async_mock.patch.object(test_module.web, 'json_response') as json_response:
        (await test_module.list_mediation_requests(self.request))
        json_response.assert_called_once_with([self.mock_record.serialize.return_value])
        mock_query.assert_called_once_with(self.context.session.return_value, {})
async def test_list_mediation_requests(self):
    self.request.query = {}
    self.context.session = async_mock.CoroutineMock()
    with async_mock.patch.object(test_module.MediationRecord, 'query', async_mock.CoroutineMock(return_value=[self.mock_record])) as mock_query, async_mock.patch.object(test_module.web, 'json_response') as json_response:
        (await test_module.list_mediation_requests(self.request))
        json_response.assert_called_once_with([self.mock_record.serialize.return_value])
        mock_query.assert_called_once_with(self.context.session.return_value, {})