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

« back to all changes in this revision

Viewing changes to ubuntuone/controlpanel/gui/gtk/tests/test_gui_basic.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:
122
122
        self.assertEqual(
123
123
            self._called, ((), {}), 'gtk.main_quit was not called.')
124
124
 
 
125
    def test_wmclass_is_correct(self):
 
126
        """Test that the WMCLASS is set."""
 
127
        self.patch(gui.ControlPanelWindow, 'set_wmclass', self._set_called)
 
128
        cp = gui.ControlPanelWindow()
 
129
        cp.destroy()
 
130
        expected = ((gui.CP_WMCLASS_NAME, gui.CP_WMCLASS_CLASS), {})
 
131
        self.assertEqual(self._called, expected)
 
132
 
125
133
    def test_title_is_correct(self):
126
134
        """The window title is correct."""
127
135
        expected = gui.MAIN_WINDOW_TITLE % {'app_name': gui.U1_APP_NAME}
315
323
 
316
324
 
317
325
class UbuntuOneBinTestCase(BaseTestCase):
318
 
    """The test suite for a Ubuntu One panel."""
 
326
    """The test suite for the Ubuntu One panel."""
319
327
 
320
328
    klass = gui.UbuntuOneBin
321
329
    kwargs = {'title': 'Something old, something new and something blue.'}