~jbicha/ubuntu-sso-client/lp-949978-improve-grammar

« back to all changes in this revision

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

- Changed the name of the function assigned to the lambda that is called on passwordChanged signal from reset_password_page (LP: #945080).

Show diffs side-by-side

added added

removed removed

Lines of Context:
136
136
        # We do +1 because a hide action is executed on the wizard init.
137
137
        self.assertEqual(self.ui.overlay.hide_counter,
138
138
            len(self.ui._pages) + 1)
 
139
 
 
140
    def test_go_back_to_current_user_sign_in(self):
 
141
        """Move the wizard back to the current user sign in page."""
 
142
        self.patch(self.ui, '_go_back_to_page', self._set_called)
 
143
        self.ui._next_id = self.ui.current_user_page_id
 
144
        self.ui.next()
 
145
        self.ui._move_to_reset_password_page()
 
146
        self.ui.reset_password.passwordChanged.emit('')
 
147
        expected = ((self.ui.current_user,), {})
 
148
        self.assertEqual(expected, self._called)