'Test stack_domain_user_token error path.'

def test_stack_domain_user_token_err_nodomain(self):

    self._clear_domain_override()
    ctx = utils.dummy_context()
    self.patchobject(ctx, '_create_auth_plugin')
    ctx.trust_id = None
    heat_ks_client = heat_keystoneclient.KeystoneClient(ctx)
    self.assertRaises(exception.Error, heat_ks_client.stack_domain_user_token, user_id='user', project_id='aproject', password='password')
