~matiasb/canonical-identity-provider/update-get-new-account-link

« back to all changes in this revision

Viewing changes to sso_sst_helpers/actions/create_account.py

  • Committer: leo.arias at canonical
  • Date: 2012-10-16 16:39:01 UTC
  • mfrom: (34.1.6 static-tests)
  • Revision ID: leo.arias@canonical.com-20121016163901-w1yqz67tsef60edj
Added fab commands for bootstrap and static tests.
Added pep8 conformance and pyflakes analysis tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
# Copyright 2012 Canonical Ltd.
4
4
#
5
5
# This program is free software: you can redistribute it and/or modify it
6
 
# under the terms of the GNU Lesser General Public License version 3, as 
 
6
# under the terms of the GNU Lesser General Public License version 3, as
7
7
# published by the Free Software Foundation.
8
8
#
9
9
# This program is distributed in the hope that it will be useful, but
14
14
# You should have received a copy of the GNU General Public License along
15
15
# with this program.  If not, see <http://www.gnu.org/licenses/>.
16
16
 
17
 
from sst.actions import *
 
17
import sst.actions
18
18
 
19
19
 
20
20
def create_ubuntu_sso_account(user):
23
23
 
24
24
 
25
25
def _fill_new_account_form(user):
26
 
    write_textfield('id_displayname', user.full_name)
27
 
    write_textfield('id_email', user.email)
28
 
    write_textfield('id_password', user.password)
29
 
    write_textfield('id_passwordconfirm', user.password)
 
26
    sst.actions.write_textfield('id_displayname', user.full_name)
 
27
    sst.actions.write_textfield('id_email', user.email)
 
28
    sst.actions.write_textfield('id_password', user.password)
 
29
    sst.actions.write_textfield('id_passwordconfirm', user.password)
30
30
 
31
31
 
32
32
def _click_continue():
33
 
    click_button(_get_continue_button())
 
33
    sst.actions.click_button(_get_continue_button())
34
34
 
35
35
 
36
36
def _get_continue_button():
37
 
    return get_element(name='continue')
 
37
    return sst.actions.get_element(name='continue')