async def test_request_mediation_x_storage_error(self):
    body = {'mediator_terms': ['meaningless string because terms are not used'], 'recipient_terms': ["meaningless string because terms are not a 'thing'"]}
    self.request.json.return_value = body
    with async_mock.patch.object(test_module.ConnRecord, 'retrieve_by_id', async_mock.CoroutineMock(side_effect=test_module.StorageError())) as mock_conn_rec_retrieve_by_id, self.assertRaises(test_module.web.HTTPBadRequest):
        (await test_module.request_mediation(self.request))
async def test_request_mediation_x_storage_error(self):
    body = {'mediator_terms': ['meaningless string because terms are not used'], 'recipient_terms': ["meaningless string because terms are not a 'thing'"]}
    self.request.json.return_value = body
    with async_mock.patch.object(test_module.ConnRecord, 'retrieve_by_id', async_mock.CoroutineMock(side_effect=test_module.StorageError())) as mock_conn_rec_retrieve_by_id, self.assertRaises(test_module.web.HTTPBadRequest):
        (await test_module.request_mediation(self.request))