~nataliabidart/ubuntu-sso-client/find-me-bin-dir

« back to all changes in this revision

Viewing changes to ubuntu_sso/qt/tests/show_gui.py

  • Committer: Tarmac
  • Author(s): Natalia B. Bidart
  • Date: 2012-02-10 23:22:26 UTC
  • mfrom: (854.3.3 policy-url)
  • Revision ID: tarmac-20120210232226-1s3xdw4a4sf6dv2k
- Allow callers pass a 'policy_url' parameter to use in the UIs (LP: #930142).

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
 
31
31
from ubuntu_sso.main import get_sso_client
32
32
from ubuntu_sso.credentials import (
 
33
     HELP_TEXT_KEY,
 
34
     PING_URL_KEY,
 
35
     POLICY_URL_KEY,
33
36
     TC_URL_KEY,
34
 
     HELP_TEXT_KEY,
35
 
     WINDOW_ID_KEY,
36
37
     UI_EXECUTABLE_KEY,
37
38
)
38
39
 
53
54
    client.cred_manager.connect_to_signal('AuthorizationDenied', found)
54
55
    client.cred_manager.connect_to_signal('CredentialsError', found)
55
56
 
56
 
    yield client.cred_manager.login('Ubuntu Two',
 
57
    yield client.cred_manager.login(u'Ubuntu Two',
57
58
        {
58
 
            TC_URL_KEY: 'http://www.google.com',
59
 
            HELP_TEXT_KEY: 'This is a test.',
60
 
            WINDOW_ID_KEY: '0',
 
59
            HELP_TEXT_KEY: u'This is a test help text.',
 
60
            PING_URL_KEY: u'http://www.wikipedia.com/',
 
61
            POLICY_URL_KEY: u'http://one.ubuntu.com/',
 
62
            TC_URL_KEY: u'http://www.google.com/',
61
63
            UI_EXECUTABLE_KEY: 'ubuntu-sso-login-gtk',
62
64
        })
63
65
    print "called ok"