async def test_mediation_request_grant_x_storage_error(self):
    with async_mock.patch.object(test_module.MediationRecord, 'retrieve_by_id', async_mock.CoroutineMock(side_effect=test_module.StorageError())), self.assertRaises(test_module.web.HTTPBadRequest):
        (await test_module.mediation_request_grant(self.request))
async def test_mediation_request_grant_x_storage_error(self):
    with async_mock.patch.object(test_module.MediationRecord, 'retrieve_by_id', async_mock.CoroutineMock(side_effect=test_module.StorageError())), self.assertRaises(test_module.web.HTTPBadRequest):
        (await test_module.mediation_request_grant(self.request))