def test_authorize_succeeds_for_tenant_id_user_in_roles(self):
        identity = self._get_identity()
        user_name = identity['HTTP_X_USER_NAME']
        user_id = identity['HTTP_X_USER_ID']
        tenant_id = identity['HTTP_X_TENANT_ID']
        for user in [user_id, user_name, '*']:
            acl = '%s:%s' % (tenant_id, user)
            self._check_authenticate(identity=identity, acl=acl)
dataset/ETHPy150Open openstack/swift/test/unit/common/middleware/test_keystoneauth.py/TestAuthorize.test_authorize_succeeds_for_tenant_id_user_in_roles/original