'Verify that trust can be created without project id.
Also, token can be generated with that trust.'

def test_create_trust_without_project_id(self):

    unscoped_token = self.get_unscoped_token(self.trustor['name'])
    request = self._create_auth_request(unscoped_token['access']['token']['id'])
    self.sample_data['project_id'] = None
    self.sample_data['roles'] = []
    new_trust = self.trust_controller.create_trust(request, trust=self.sample_data)['trust']
    self.assertEqual(self.trustor['id'], new_trust['trustor_user_id'])
    self.assertEqual(self.trustee['id'], new_trust['trustee_user_id'])
    self.assertIs(True, new_trust['impersonation'])
    auth_response = self.fetch_v2_token_from_trust(new_trust)
    token_user = auth_response['access']['user']
    self.assertEqual(token_user['id'], new_trust['trustor_user_id'])
