'Verify getting a token in a tenant with an unscoped token.'

def test_auth_unscoped_token_project(self):

    self.assignment_api.add_role_to_user_and_project(self.user_foo['id'], self.tenant_bar['id'], self.role_member['id'])
    body_dict = _build_user_auth(username='foo', password='foo2')
    unscoped_token = self.controller.authenticate(self.make_request(), body_dict)
    body_dict = _build_user_auth(token=unscoped_token['access']['token'], tenant_name='BAR')
    scoped_token = self.controller.authenticate(self.make_request(), body_dict)
    tenant = scoped_token['access']['token']['tenant']
    roles = scoped_token['access']['metadata']['roles']
    self.assertEqual(self.tenant_bar['id'], tenant['id'])
    self.assertThat(roles, matchers.Contains(self.role_member['id']))
