~alecu/ubuntuone-client/dont-log-proxy-creds

« back to all changes in this revision

Viewing changes to tests/platform/linux/test_credentials.py

  • Committer: Tarmac
  • Author(s): Natalia B. Bidart
  • Date: 2012-02-25 00:35:39 UTC
  • mfrom: (1193.1.5 use-sso-qt)
  • Revision ID: tarmac-20120225003539-5a46s2jld28re67a
- Use the Qt SSO UI when doing credentials management (LP: #930716).
- Use consistently the U1_DEBUG env var to have DEUBG output.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
    CredentialsError,
33
33
    CredentialsManagementTool,
34
34
    logger,
 
35
    UI_PARAMS,
35
36
)
36
37
from ubuntuone.platform.credentials.linux import (
37
38
    APP_NAME,
40
41
    DBUS_BUS_NAME,
41
42
    DBUS_CREDENTIALS_IFACE,
42
43
    DBUS_CREDENTIALS_PATH,
43
 
    DESCRIPTION,
44
 
    HELP_TEXT_KEY,
45
 
    PING_URL,
46
 
    PING_URL_KEY,
47
 
    TC_URL_KEY,
48
 
    TC_URL,
49
44
    TIMEOUT_INTERVAL,
50
45
    ubuntu_sso,
51
46
)
377
372
        yield d
378
373
 
379
374
        self.assertEqual(self.sso_server._app_name, APP_NAME)
380
 
        params = {HELP_TEXT_KEY: DESCRIPTION, TC_URL_KEY: TC_URL,
381
 
                  PING_URL_KEY: PING_URL}
 
375
        params = dict(UI_PARAMS)
382
376
        params.update(self.args)
383
377
        self.assertEqual(self.sso_server._args, params)
384
378
 
391
385
        yield d
392
386
 
393
387
        self.assertEqual(self.sso_server._app_name, APP_NAME)
394
 
        params = {HELP_TEXT_KEY: DESCRIPTION, TC_URL_KEY: TC_URL,
395
 
                  PING_URL_KEY: PING_URL}
 
388
        params = dict(UI_PARAMS)
396
389
        params.update(self.args)
397
390
        self.assertEqual(self.sso_server._args, params)
398
391