'Test protected property update is allowed as long as the user has read
access and the value is unchanged'

def test_prop_protection_update_noop(self):

    image_id = self._create_admin_image({'x-image-meta-property-spl_read_prop': 'foo'})
    another_request = unit_test_utils.get_fake_request(path=('/images/%s' % image_id), method='PUT')
    headers = {'x-auth-token': 'user:tenant:spl_role', 'x-image-meta-property-spl_read_prop': 'foo'}
    for (k, v) in six.iteritems(headers):
        another_request.headers[k] = v
    output = another_request.get_response(self.api)
    res_body = jsonutils.loads(output.body)['image']
    self.assertEqual('foo', res_body['properties']['spl_read_prop'])
    self.assertEqual(http_client.OK, output.status_int)
