'Tests admin can update \'immutable\' props of active image'

def test_props_of_active_image_mutable_for_admin(self):

    test_router_api = router.API(self.mapper)
    self.api = test_utils.FakeAuthMiddleware(test_router_api, is_admin=True)
    fixture_header_list = [{'x-image-meta-checksum': '1234'}, {'x-image-meta-size': '12345'}]
    for fixture_header in fixture_header_list:
        req = webob.Request.blank(('/images/%s' % UUID2))
        req.method = 'PUT'
        for (k, v) in six.iteritems(fixture_header):
            req = webob.Request.blank(('/images/%s' % UUID2))
            req.method = 'HEAD'
            res = req.get_response(self.api)
            self.assertEqual(http_client.OK, res.status_int)
            req = webob.Request.blank(('/images/%s' % UUID2))
            req.headers[k] = v
            req.method = 'PUT'
            res = req.get_response(self.api)
            self.assertEqual(http_client.OK, res.status_int)
            req = webob.Request.blank(('/images/%s' % UUID2))
            req.method = 'HEAD'
            res = req.get_response(self.api)
            self.assertEqual(http_client.OK, res.status_int)
            self.assertEqual(v, res.headers[k])
