async def test_send_keylist_update_bad_action(self):
    self.request.json.return_value = {'updates': [{'recipient_key': 'test-key0', 'action': 'wrong'}]}
    with self.assertRaises(test_module.web.HTTPBadRequest):
        (await test_module.send_keylist_update(self.request))
async def test_send_keylist_update_bad_action(self):
    self.request.json.return_value = {'updates': [{'recipient_key': 'test-key0', 'action': 'wrong'}]}
    with self.assertRaises(test_module.web.HTTPBadRequest):
        (await test_module.send_keylist_update(self.request))