~mikemc/ubuntuone-control-panel/url-paranoia-1112792

« back to all changes in this revision

Viewing changes to ubuntuone/controlpanel/gui/qt/tests/test_controlpanel.py

  • Committer: Tarmac
  • Author(s): mike.mccracken at canonical
  • Date: 2012-11-13 10:42:17 UTC
  • mfrom: (356.2.6 remote-folders-fix-1)
  • Revision ID: tarmac-20121113104217-aulc40zvc52r0ch3
- Connect files service in wizard to enable display of remote folders. (LP: #978043)

Show diffs side-by-side

added added

removed removed

Lines of Context:
91
91
        self.assertEqual(self._called, ((), {}))
92
92
 
93
93
    def test_on_credentials_found(self):
94
 
        """The management panel is shown."""
 
94
        """File sync is connected and the management panel is shown."""
95
95
        self.patch(self.ui, 'connect_file_sync', self._set_called)
96
 
        self.ui.on_credentials_not_found()
97
 
        self.ui.on_credentials_found()
 
96
        yield self.ui.on_credentials_found()
98
97
 
99
98
        self.assertIs(self.ui.ui.switcher.currentWidget(),
100
99
                      self.ui.ui.management)
154
153
 
155
154
    def test_on_wizard_finished(self):
156
155
        """When the wizard is finished, the management panel is shown."""
157
 
        self.patch(self.ui, 'on_credentials_found', self._set_called)
 
156
        self.patch(self.ui, 'show_management_ui', self._set_called)
158
157
        self.ui.ui.wizard.finished.emit(1)
159
158
 
160
159
        self.assertEqual(self._called, ((), {}))