'Test \'standard\' workflow for granting Fernet access tokens.
* Issue unscoped token
* List available projects based on groups
* Scope token to one of available projects'

def test_fernet_full_workflow(self):

    resp = self._issue_unscoped_token()
    self.assertValidMappedUser(resp.json_body['token'])
    unscoped_token = resp.headers.get('X-Subject-Token')
    resp = self.get('/auth/projects', token=unscoped_token)
    projects = resp.result['projects']
    random_project = random.randint(0, (len(projects) - 1))
    project = projects[random_project]
    v3_scope_request = self._scope_request(unscoped_token, 'project', project['id'])
    resp = self.v3_create_token(v3_scope_request)
    token_resp = resp.result['token']
    self._check_project_scoped_token_attributes(token_resp, project['id'])
