async def test_mediation_request_deny_role_client_x(self):
    self.mock_record.role = MediationRecord.ROLE_CLIENT
    with async_mock.patch.object(test_module.MediationRecord, 'retrieve_by_id', async_mock.CoroutineMock()) as mock_mediation_record_retrieve, async_mock.patch.object(test_module.web, 'json_response'):
        mock_mediation_record_retrieve.return_value = async_mock.MagicMock(role=MediationRecord.ROLE_CLIENT)
        with self.assertRaises(test_module.web.HTTPBadRequest):
            (await test_module.mediation_request_deny(self.request))
async def test_mediation_request_deny_role_client_x(self):
    self.mock_record.role = MediationRecord.ROLE_CLIENT
    with async_mock.patch.object(test_module.MediationRecord, 'retrieve_by_id', async_mock.CoroutineMock()) as mock_mediation_record_retrieve, async_mock.patch.object(test_module.web, 'json_response'):
        mock_mediation_record_retrieve.return_value = async_mock.MagicMock(role=MediationRecord.ROLE_CLIENT)
        with self.assertRaises(test_module.web.HTTPBadRequest):
            (await test_module.mediation_request_deny(self.request))