~nataliabidart/ubuntu-sso-client/restore-register-api

« back to all changes in this revision

Viewing changes to ubuntu_sso/tests/test_gui.py

  • Committer: Tarmac
  • Author(s): Natalia B. Bidart
  • Date: 2011-03-24 16:17:54 UTC
  • mfrom: (643.1.2 displayname-stable)
  • Revision ID: tarmac-20110324161754-sqgaabelpzj1m9la
Tags: ubuntu-sso-client-1_0_9
- Register now uses the 'displayname' field to pass it on to SSO as display name (LP: #709494).

Show diffs side-by-side

added added

removed removed

Lines of Context:
678
678
        expected = 'register_user'
679
679
        self.assertIn(expected, self.ui.backend._called)
680
680
        self.assertEqual(self.ui.backend._called[expected],
681
 
                         ((APP_NAME, EMAIL, PASSWORD, CAPTCHA_ID,
 
681
                         ((APP_NAME, EMAIL, PASSWORD, NAME, CAPTCHA_ID,
682
682
                           CAPTCHA_SOLUTION),
683
683
                          dict(reply_handler=gui.NO_OP,
684
684
                               error_handler=gui.NO_OP)))
1163
1163
                                          self.ui.FIELD_REQUIRED)
1164
1164
        self.assertNotIn('register_user', self.ui.backend._called)
1165
1165
 
1166
 
    # Unused variable 'skip'
1167
 
    # pylint: disable=W0612
1168
 
    test_warning_is_shown_if_name_empty.skip = \
1169
 
        'Unused for now, will be hidden to save space (LP: #627440).'
1170
 
 
1171
1166
    def test_warning_is_shown_if_empty_email(self):
1172
1167
        """A warning message is shown if emails are empty."""
1173
1168
        self.ui.email1_entry.set_text('')