'Tests that the /images PUT registry API updates the image'

def test_update_image(self):

    fixture = {'name': 'fake    public    image    #2', 'min_disk': 5, 'min_ram': 256, 'disk_format': 'raw'}
    body = jsonutils.dump_as_bytes(dict(image=fixture))
    res = self.get_api_response_ext(http.OK, url=('/images/%s' % UUID2), body=body, method='PUT', content_type='json')
    res_dict = jsonutils.loads(res.body)
    self.assertNotEqual(res_dict['image']['created_at'], res_dict['image']['updated_at'])
    for (k, v) in six.iteritems(fixture):
        self.assertEqual(v, res_dict['image'][k])
