'Tests the registry API returns a NotFound with unknown marker.'

def test_get_index_unknown_marker(self):

    req = webob.Request.blank('/rpc')
    req.method = 'POST'
    cmd = [{'command': 'image_get_all', 'kwargs': {'marker': _gen_uuid()}}]
    req.body = jsonutils.dump_as_bytes(cmd)
    res = req.get_response(self.api)
    result = jsonutils.loads(res.body)[0]
    self.assertIn('_error', result)
    self.assertIn('NotFound', result['_error']['cls'])
