diff options
author | kali <kali@leap.se> | 2012-11-06 01:26:05 +0900 |
---|---|---|
committer | kali <kali@leap.se> | 2012-11-06 01:26:05 +0900 |
commit | c387a52f841e8933ed7282d198ed1ece863979fc (patch) | |
tree | c3465991425dc6de6ae9296b931e8a805491fa05 /src/leap/gui/tests/integration | |
parent | 0a8a34879a701a2d045f628403c6a0f8be21dc82 (diff) |
new validation pages in a reusable MVC style
using progress indicators inside QTableWidget
Diffstat (limited to 'src/leap/gui/tests/integration')
-rw-r--r-- | src/leap/gui/tests/integration/fake_user_signup.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/leap/gui/tests/integration/fake_user_signup.py b/src/leap/gui/tests/integration/fake_user_signup.py index 12f18966..78873749 100644 --- a/src/leap/gui/tests/integration/fake_user_signup.py +++ b/src/leap/gui/tests/integration/fake_user_signup.py @@ -12,6 +12,7 @@ curl -d login=python_test_user -d password_salt=54321\ from BaseHTTPServer import HTTPServer from BaseHTTPServer import BaseHTTPRequestHandler import cgi +import json import urlparse HOST = "localhost" @@ -19,12 +20,15 @@ PORT = 8000 LOGIN_ERROR = """{"errors":{"login":["has already been taken"]}}""" +from leap.base.tests.test_providers import EXPECTED_DEFAULT_CONFIG + class request_handler(BaseHTTPRequestHandler): responses = { '/': ['ok\n'], '/users.json': ['ok\n'], - '/timeout': ['ok\n'] + '/timeout': ['ok\n'], + '/provider.json': ['%s\n' % json.dumps(EXPECTED_DEFAULT_CONFIG)] } def do_GET(self): |