async def test_send_keylist_update_x_storage_error(self):
    self.request.json.return_value = {'updates': [{'recipient_key': 'test-key0', 'action': 'add'}]}
    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.send_keylist_update(self.request))
async def test_send_keylist_update_x_storage_error(self):
    self.request.json.return_value = {'updates': [{'recipient_key': 'test-key0', 'action': 'add'}]}
    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.send_keylist_update(self.request))