'Test protected property cannot be updated without read permission'

def test_prop_protection_update_without_read(self):

    image_id = self._create_admin_image({'x-image-meta-property-spl_update_only_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_update_only_prop': 'bar'}
    for (k, v) in six.iteritems(headers):
        another_request.headers[k] = v
    output = another_request.get_response(self.api)
    self.assertEqual(webob.exc.HTTPForbidden.code, output.status_int)
    self.assertIn(("Property    '%s'    is    protected" % 'spl_update_only_prop'), output.body.decode())
