~nataliabidart/magicicada-client/fix-travis-ubuntuone-clientdefs

« back to all changes in this revision

Viewing changes to magicicadaclient/platform/tests/launcher/test_linux.py

  • Committer: Natalia
  • Date: 2018-05-19 20:44:54 UTC
  • mto: This revision was merged to the branch mainline in revision 1445.
  • Revision ID: natalia.bidart@ubuntu.com-20180519204454-fliiqyexj67r7fp9
- Rename python package to magicicadaclient.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# tests.platform.linux.test_launcher
2
 
#
3
 
# Author: Alejandro J. Cura <alecu@canonical.com>
4
 
#
5
1
# Copyright 2011-2012 Canonical Ltd.
 
2
# Copyright 2017-2018 Chicharreros (https://launchpad.net/~chicharreros)
6
3
#
7
4
# This program is free software: you can redistribute it and/or modify it
8
5
# under the terms of the GNU General Public License version 3, as published
33
30
from twisted.internet import defer
34
31
from twisted.trial.unittest import TestCase
35
32
 
36
 
from ubuntuone.platform import launcher
 
33
from magicicadaclient.platform import launcher
37
34
 
38
35
 
39
36
class FakeLauncherEntryProps(object):
66
63
class LauncherTestCase(TestCase):
67
64
    """Test the Launcher interface."""
68
65
 
69
 
    from ubuntuone.platform.launcher.linux import use_libunity
 
66
    from magicicadaclient.platform.launcher.linux import use_libunity
70
67
    skip = None if use_libunity else "libunity not installed."
71
68
 
72
69
    @defer.inlineCallbacks
73
70
    def setUp(self):
74
71
        """Initialize this test instance."""
75
72
        yield super(LauncherTestCase, self).setUp()
76
 
        import ubuntuone.platform.launcher.linux
77
 
        self.patch(ubuntuone.platform.launcher.linux.Unity,
 
73
        import magicicadaclient.platform.launcher.linux
 
74
        self.patch(magicicadaclient.platform.launcher.linux.Unity,
78
75
                   "LauncherEntry", FakeLauncherEntry)
79
76
        self.launcher = launcher.Launcher()
80
77