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

« back to all changes in this revision

Viewing changes to ubuntu_sso/qt/tests/test_current_user_sign_in_page.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:
136
136
        self.ui._validate()
137
137
        self.assertTrue(button.isEnabled())
138
138
 
139
 
    def test_login_with_ping(self):
140
 
        """Test the login method."""
141
 
        self.patch(self.ui, "hide_error", self._set_called)
142
 
        email = 'valid@email'
143
 
        password = '123456'
144
 
        self.ui.ui.email_edit.setText(email)
145
 
        self.ui.ui.password_edit.setText(password)
146
 
        self.ui.login()
147
 
        self.assertEqual(self._overlay_show_counter, 1)
148
 
        self.assertFalse(self.ui.isEnabled())
149
 
        self.assert_backend_called('login_and_ping',
150
 
            self.app_name, email, password, self.ui.ping_url)
151
 
        expected = ((), {})
152
 
        self.assertEqual(expected, self._called)
153
 
 
154
 
    def test_login_without_ping(self):
155
 
        """Test the login method."""
156
 
        self.patch(self.ui, "hide_error", self._set_called)
157
 
        self.ui.ping_url = ''
 
139
    def test_login(self):
 
140
        """Test the login method."""
 
141
        self.patch(self.ui, "hide_error", self._set_called)
158
142
        email = 'valid@email'
159
143
        password = '123456'
160
144
        self.ui.ui.email_edit.setText(email)