'An unscoped token can be requested
That token can be used to request a scoped token.'

@decorators.idempotent_id('25ba82ee-8a32-4ceb-8f50-8b8c71e8765e')
def test_rescope_token(self):

    user_name = data_utils.rand_name(name='user')
    user_password = data_utils.rand_password()
    tenant_id = None
    user = self.create_test_user(name=user_name, password=user_password, tenantId=tenant_id, email='')
    tenant1_name = data_utils.rand_name(name='tenant')
    tenant1 = self.setup_test_tenant(name=tenant1_name)
    tenant2_name = data_utils.rand_name(name='tenant')
    tenant2 = self.setup_test_tenant(name=tenant2_name)
    role = self.setup_test_role()
    self.roles_client.create_user_role_on_project(tenant1['id'], user['id'], role['id'])
    self.roles_client.create_user_role_on_project(tenant2['id'], user['id'], role['id'])
    body = self.token_client.auth(user_name, user_password)
    token_id = body['token']['id']
    body = self.token_client.auth_token(token_id, tenant=tenant1_name)
    scoped_token_id = body['token']['id']
    self.client.delete_token(scoped_token_id)
    body = self.token_client.auth_token(token_id, tenant=tenant2_name)
