async def test_request_mediation_x_conn_not_ready(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(return_value=async_mock.MagicMock(is_ready=False))) as mock_conn_rec_retrieve_by_id, self.assertRaises(test_module.web.HTTPBadRequest) as exc:
        (await test_module.request_mediation(self.request))
        assert ('request connection is not ready' in exc.msg)
async def test_request_mediation_x_conn_not_ready(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(return_value=async_mock.MagicMock(is_ready=False))) as mock_conn_rec_retrieve_by_id, self.assertRaises(test_module.web.HTTPBadRequest) as exc:
        (await test_module.request_mediation(self.request))
        assert ('request connection is not ready' in exc.msg)