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

« back to all changes in this revision

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

- Manual event generation wasn't being processed properly, causing to miss the disconnection (LP: #1070362).

Show diffs side-by-side

added added

removed removed

Lines of Context:
272
272
 
273
273
    def test_connect_ui_2(self):
274
274
        """Test more connections from connect_ui"""
275
 
 
276
 
        #
277
275
        self.assertEqual(self.ui.ui.captcha_solution_edit.receivers(
278
276
            QtCore.SIGNAL("textEdited(const QString&)")), 1)
279
277
        self.assertEqual(self.ui.terms_checkbox.receivers(
378
376
    def test_show_event(self):
379
377
        """Check that show_event works when set_up_button is none."""
380
378
        self.assertEqual(self.ui.set_up_button, None)
381
 
        self.ui.showEvent(QtGui.QShowEvent())
382
 
        self.ui.hideEvent(QtGui.QHideEvent())
 
379
        self.ui.show()
 
380
        self.addCleanup(self.ui.hide)
383
381
 
384
382
    def test_on_captcha_generated(self):
385
383
        """Check that the captcha image is handled correctly."""