'Test that projects remain idempotent for every federated auth.'

def test_shadow_mapping_is_idempotent(self):

    response = self._issue_unscoped_token()
    self.assertValidMappedUser(response.json_body['token'])
    unscoped_token = response.headers.get('X-Subject-Token')
    response = self.get('/auth/projects', token=unscoped_token)
    project_ids = [p['id'] for p in response.json_body['projects']]
    response = self._issue_unscoped_token()
    unscoped_token = response.headers.get('X-Subject-Token')
    response = self.get('/auth/projects', token=unscoped_token)
    projects = response.json_body['projects']
    for project in projects:
        self.assertIn(project['id'], project_ids)
