'Verify that role check is case-insensitive i.e. the property
marked with role Member is creatable by the member role'

def test_create_protected_prop_check_case_insensitive(self):

    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:member', 'x-image-meta-property-x_case_insensitive': '1'}
    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('1', res_body['properties']['x_case_insensitive'])
