~ralsina/ubuntuone-windows-installer/ui-come-back-to-installer

« back to all changes in this revision

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

  • Committer: ralsina
  • Date: 2011-08-02 02:27:48 UTC
  • Revision ID: roberto.alsina@canonical.com-20110802022748-3qm2kpy6iyo1kugl
betterĀ docstrings.

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
        super(CurrentUserTestCase, self).setUp()
75
75
 
76
76
    def test_login_success(self):
77
 
        """Check that login works."""
 
77
        """Check that login works correctly."""
78
78
        self.patch(currentuser, 'CredentialsManagementTool',
79
79
            FakeCredentialsManagementToolSuccess)
80
80
        self.patch(self.controller, 'on_logged_in', self._set_called)
82
82
        self.assertEqual(self._called, (('APP', {'x': 'y'}), {}))
83
83
 
84
84
    def test_login_failure(self):
85
 
        """Check that login works."""
 
85
        """Check that login fails correctly."""
86
86
        self.patch(currentuser, 'CredentialsManagementTool',
87
87
            FakeCredentialsManagementToolFailure)
88
88
        self.patch(self.controller, 'on_login_error', self._set_called)