~ubuntu-branches/ubuntu/oneiric/ubuntuone-control-panel/oneiric

« back to all changes in this revision

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

* New upstream release:
  [ Alejandro J. Cura <alecu@canonical.com>]
    - Do not throw a webclient error when closing
      (LP: #845105).
  [ Natalia B. Bidart <natalia.bidart@canonical.com> ]
    - Removed all code related to Bookmarks (LP: #850142).
    - Replaces references to "Evolution" by "Thunderbird" (LP: #849494).
  [ Rodney Dawes <rodney.dawes@canonical.com> ]
    - Don't install a .desktop file for control panel
      (part of LP: #838778).
    - Point the indicator/Unity API at the installer .desktop file
      (part of LP: #838778).
    - Set the WMCLASS so Unity will fall back properly
      (part of LP: #838778).
    - Fix a few grammar mistakes (LP: #835093).
    - Don't show the "Get NGB free!" label on "Join now" button at all
      (LP: #819955).
* debian/control:
  - ubuntuone-control-panel-gtk depends now on ubuntuone-installer >= 2.0.0.
  - require ubuntuone-client >= 2.0.0.
  - require ubuntu-sso-client >= 1.4.0.
  - no longer install a .desktop file (will be installed by ubuntuone-installer).

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
from twisted.internet import defer
22
22
 
23
 
from ubuntuone.controlpanel.gui import qt
24
23
from ubuntuone.controlpanel.gui.qt import account as gui
25
24
from ubuntuone.controlpanel.gui.qt.tests import (
26
25
    SAMPLE_ACCOUNT_INFO, SAMPLE_EMAIL, SAMPLE_NAME, SAMPLE_PLAN,
75
74
 
76
75
    def test_edit_account_button(self):
77
76
        """When clicking the edit account button, the proper url is opened."""
78
 
        self.patch(qt, 'uri_hook', self._set_called)
79
 
        self.ui.ui.edit_profile_button.click()
80
 
 
81
 
        self.assertEqual(self._called, ((gui.EDIT_PROFILE_LINK,), {}))
 
77
        self.assert_uri_hook_called(self.ui.ui.edit_profile_button,
 
78
                                    gui.EDIT_PROFILE_LINK)
82
79
 
83
80
    def test_edit_services_button(self):
84
81
        """When clicking the mobile plan button, the proper url is opened."""
85
 
        self.patch(qt, 'uri_hook', self._set_called)
86
 
        self.ui.ui.edit_services_button.click()
87
 
 
88
 
        self.assertEqual(self._called, ((gui.EDIT_ACCOUNT_LINK,), {}))
 
82
        self.assert_uri_hook_called(self.ui.ui.edit_services_button,
 
83
                                    gui.EDIT_ACCOUNT_LINK)