~diegosarmentero/ubuntuone-windows-installer/captcha-refresh

« back to all changes in this revision

Viewing changes to ubuntuone_installer/gui/qt/tests/test_setup_account.py

  • Committer: Diego Sarmentero
  • Date: 2011-09-22 17:04:39 UTC
  • Revision ID: diego.sarmentero@canonical.com-20110922170439-r92vqdzpy72vik3i
Fixed: There is no feedback on captcha loading/refreshing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
307
307
        """Check that show_event works when set_up_button is none."""
308
308
        self.assertEqual(self.ui.set_up_button, None)
309
309
        self.ui.showEvent(QtGui.QShowEvent())
 
310
 
 
311
    def test_on_captcha_refreshing(self):
 
312
        """Check the state of the overlay on captcha refreshing."""
 
313
        self.assertEqual(self.ui.wizard().overlay.show_counter, 0)
 
314
        self.ui.on_captcha_refreshing()
 
315
        self.assertEqual(self.ui.wizard().overlay.show_counter, 1)
 
316
 
 
317
    def test_on_captcha_refresh_complete(self):
 
318
        """Check the state of the overlay on captcha refreshing complete."""
 
319
        self.assertEqual(self.ui.wizard().overlay.hide_counter, 0)
 
320
        self.ui.on_captcha_refresh_complete()
 
321
        self.assertEqual(self.ui.wizard().overlay.hide_counter, 1)