diff options
author | Emmanuel Raviart <eraviart@entrouvert.com> | 2004-08-06 14:13:01 +0000 |
---|---|---|
committer | Emmanuel Raviart <eraviart@entrouvert.com> | 2004-08-06 14:13:01 +0000 |
commit | 3473ac144fc4b06c299e803bc7319e3f36b7eb7b (patch) | |
tree | 5cd5c9f645f088ad8f10a37ba5bbfa3bf81c49e3 /python/tests/Provider.py | |
parent | 75149f3aa17317ae00c5be167ad8a9dccea90f1d (diff) | |
download | lasso-3473ac144fc4b06c299e803bc7319e3f36b7eb7b.tar.gz lasso-3473ac144fc4b06c299e803bc7319e3f36b7eb7b.tar.xz lasso-3473ac144fc4b06c299e803bc7319e3f36b7eb7b.zip |
Cleanly separated the new Python Lasso simulator from unit tests.
Diffstat (limited to 'python/tests/Provider.py')
-rw-r--r-- | python/tests/Provider.py | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/python/tests/Provider.py b/python/tests/Provider.py new file mode 100644 index 00000000..809376d4 --- /dev/null +++ b/python/tests/Provider.py @@ -0,0 +1,35 @@ +# -*- coding: UTF-8 -*- + + +# Python Lasso Simulator +# +# Copyright (C) 2004 Entr'ouvert +# http://lasso.entrouvert.org +# +# Author: Emmanuel Raviart <eraviart@entrouvert.com> +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# FIXME: Replace principal with client in most methods. +# FIXME: Rename webUser to userAccount. + + +import lasso + +from websimulator import * + + +class Provider(WebSite): + def getServer(self): + return lasso.Server.new_from_dump(self.serverDump) |