~diegosarmentero/ubuntuone-client/bug1169312

« back to all changes in this revision

Viewing changes to tests/platform/messaging/test_linux.py

  • Committer: Rodney Dawes
  • Date: 2012-10-01 13:32:57 UTC
  • mto: This revision was merged to the branch mainline in revision 1329.
  • Revision ID: rodney.dawes@canonical.com-20121001133257-j6kf45abkskrpial
Start the control panel, not the old installer which no longer exists.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
from twisted.internet import defer
40
40
from twisted.trial.unittest import TestCase
41
41
from ubuntuone.devtools.testcases import skipIf
42
 
 
 
42
from ubuntuone.platform.messaging import linux
43
43
from ubuntuone.platform.messaging.linux import (
44
44
    Messaging,
45
45
    _server_callback,
160
160
        actual_callback = messaging.create_callback()
161
161
        actual_callback(messaging.indicators[-1])
162
162
        self.assertEquals(0, len(messaging.indicators))
 
163
 
 
164
    def test_open_u1(self):
 
165
        """Check that the proper action is executed."""
 
166
        data = []
 
167
 
 
168
        self.patch(linux.glib, "spawn_command_line_async", data.append)
 
169
        _server_callback(None)
 
170
        self.assertEqual(data, ['ubuntuone-control-panel-qt'])