'As admin role, create an image and verify permitted role \'member\' can
create a protected property'

def test_prop_protection_with_permitted_policy_config(self):

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