~ralsina/ubuntuone-windows-installer/no-icon-without-arguments

« back to all changes in this revision

Viewing changes to ubuntuone_installer/gui/qt/utils/tests/test_linux.py

  • Committer: Tarmac
  • Author(s): Natalia B. Bidart, ralsina
  • Date: 2011-09-15 22:02:03 UTC
  • mfrom: (64.2.5 start-right)
  • Revision ID: tarmac-20110915220203-8m90rveaj4dylhcz
- Start the control panel using the --with-icon switch (LP: #851221).

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
"""Tests for the platform specific functions."""
20
20
 
21
21
import os
 
22
import subprocess
22
23
 
23
24
from ubuntuone_installer.gui.qt import utils
24
25
from ubuntuone_installer.gui.qt.tests import BaseTestCase
25
26
 
26
27
 
 
28
class StartControlPanelTestCase(BaseTestCase):
 
29
 
 
30
    """Test the start of the control panel."""
 
31
 
 
32
    def test_start_control_panel(self):
 
33
        """The proper process is started."""
 
34
        self.patch(subprocess, "Popen", self._set_called)
 
35
 
 
36
        utils.start_control_panel()
 
37
 
 
38
        expected = ((['ubuntuone-control-panel-qt'],), {})
 
39
        self.assertEqual(self._called, expected)
 
40
 
 
41
 
27
42
class DefaultFoldersTestCase(BaseTestCase):
28
43
 
29
44
    """Test the default suggested UDFs."""