'Tests the registry API endpoint returns 404 for an unknown id.'

def test_show_unknown(self):

    req = webob.Request.blank('/rpc')
    req.method = 'POST'
    cmd = [{'command': 'image_get', 'kwargs': {'image_id': _gen_uuid()}}]
    req.body = jsonutils.dump_as_bytes(cmd)
    res = req.get_response(self.api)
    res_dict = jsonutils.loads(res.body)[0]
    self.assertEqual('glance.common.exception.ImageNotFound', res_dict['_error']['cls'])
