~nataliabidart/ubuntu-sso-client/rename-me-too

« back to all changes in this revision

Viewing changes to ubuntu_sso/main/tests/test_common.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
    TIMEOUT_INTERVAL,
31
31
    UbuntuSSOService,
32
32
)
33
 
from ubuntu_sso.main import (HELP_TEXT_KEY, PING_URL_KEY,
34
 
    TC_URL_KEY, UI_EXECUTABLE_KEY, WINDOW_ID_KEY)
 
33
from ubuntu_sso.main import (
 
34
    HELP_TEXT_KEY,
 
35
    PING_URL_KEY,
 
36
    POLICY_URL_KEY,
 
37
    TC_URL_KEY,
 
38
    UI_EXECUTABLE_KEY,
 
39
    WINDOW_ID_KEY,
 
40
)
35
41
from ubuntu_sso.main.tests import FakedCredentials
36
 
from ubuntu_sso.tests import (APP_NAME, TC_URL, HELP_TEXT, CAPTCHA_ID,
37
 
    CAPTCHA_SOLUTION, EMAIL, EMAIL_TOKEN, NAME, PASSWORD, PING_URL, TOKEN,
38
 
    WINDOW_ID, Recorder, TestCase)
 
42
from ubuntu_sso.tests import (
 
43
    APP_NAME,
 
44
    CAPTCHA_ID,
 
45
    CAPTCHA_SOLUTION,
 
46
    EMAIL,
 
47
    EMAIL_TOKEN,
 
48
    HELP_TEXT,
 
49
    NAME,
 
50
    PASSWORD,
 
51
    PING_URL,
 
52
    POLICY_URL,
 
53
    Recorder,
 
54
    TC_URL,
 
55
    TestCase,
 
56
    TOKEN,
 
57
    WINDOW_ID,
 
58
)
39
59
 
40
60
 
41
61
# Access to a protected member 'yyy' of a client class
538
558
 
539
559
    base_args = {
540
560
        HELP_TEXT_KEY: HELP_TEXT, PING_URL_KEY: PING_URL,
 
561
        POLICY_URL_KEY: POLICY_URL,
541
562
        TC_URL_KEY: TC_URL, WINDOW_ID_KEY: WINDOW_ID,
542
563
        UI_EXECUTABLE_KEY: 'super-ui',
543
564
    }