'Tests that the root registry API returns "index",
which is a list of public images'

def test_get_root(self):

    fixture = {'id': UUID2, 'size': 19, 'checksum': None}
    res = self.get_api_response_ext(http.OK, url='/')
    res_dict = jsonutils.loads(res.body)
    images = res_dict['images']
    self.assertEqual(1, len(images))
    for (k, v) in six.iteritems(fixture):
        self.assertEqual(v, images[0][k])
