~alecu/ubuntu-sso-client/broken-signals-questionmark

« back to all changes in this revision

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

  • Committer: Alejandro J. Cura
  • Date: 2011-06-23 15:58:26 UTC
  • Revision ID: alecu@canonical.com-20110623155826-zyiuzvod2lovxj3y
fix lint errors

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
from ubuntu_sso.main.windows import UbuntuSSOClient
25
25
 
26
26
def found(*args):
 
27
    """The credentials were found."""
27
28
    print "creds found", args
28
29
    reactor.stop()
29
30
 
34
35
    client = yield client.connect()
35
36
    client.sso_cred.on_credentials_found_cb = found
36
37
    yield client.sso_cred.register_to_signals()
37
 
    creds = yield client.sso_cred.login_or_register_to_get_credentials('Ubuntu One',
 
38
    yield client.sso_cred.login_or_register_to_get_credentials('Ubuntu One',
38
39
                                                    'http://www.google.com',
39
40
                                                    'This is a test.', 0)
40
41
    print "called ok"