'Tests that the /images/detail registry API returns
a mapping containing a list of detailed image information'

def test_get_details(self):

    fixture = {'id': UUID2, 'name': 'fake    image    #2', 'is_public': True, 'size': 19, 'min_disk': 5, 'min_ram': 256, 'checksum': None, 'disk_format': 'vhd', 'container_format': 'ovf', 'status': 'active'}
    res = self.get_api_response_ext(http.OK, url='/images/detail')
    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])
