~ubuntuone-control-tower/ubuntu-sso-client/trunk

« back to all changes in this revision

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

  • Committer: Tarmac
  • Author(s): Rodney Dawes, Natalia Bidart
  • Date: 2014-08-14 14:20:29 UTC
  • mfrom: (1035.3.5 no-more-ping)
  • Revision ID: tarmac-20140814142029-phtfnx288m2ddxes
Remove the ping URL usage.
Update the Terms and Privacy URLs to point to login.ubuntu.com.
Update timestamp checking URL to point to login.ubuntu.com.

Show diffs side-by-side

added added

removed removed

Lines of Context:
126
126
        self.assert_signal_emitted(self.ui.registrationSuccess, (email,),
127
127
            self.ui.on_email_validated, self.app_name, email)
128
128
 
129
 
    def test_validate_email_with_ping(self):
130
 
        """Test the login method."""
131
 
        self.patch(self.ui, "hide_error", self._set_called)
132
 
        email = 'email@example.com'
133
 
        password = 'password'
134
 
        code = 'code'
135
 
        self.ui.email = email
136
 
        self.ui.password = password
137
 
        self.ui.ui.verification_code_edit.setText(code)
138
 
 
139
 
        self.ui.validate_email()
140
 
 
141
 
        self.assert_backend_called('validate_email_and_ping',
142
 
            self.app_name, email, password, code, self.ui.ping_url)
143
 
        expected = ((), {})
144
 
        self.assertEqual(expected, self._called)
145
 
        self.assertEqual(self._overlay_show_counter, 1)
146
 
 
147
 
    def test_validate_email_without_ping(self):
148
 
        """Test the login method."""
149
 
        self.patch(self.ui, "hide_error", self._set_called)
150
 
        self.ui.ping_url = ''
 
129
    def test_validate_email(self):
 
130
        """Test the login method."""
 
131
        self.patch(self.ui, "hide_error", self._set_called)
151
132
        email = 'email@example.com'
152
133
        password = 'password'
153
134
        code = 'code'