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

« back to all changes in this revision

Viewing changes to contrib/dbus-docs

  • 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:
37
37
import shutil
38
38
 
39
39
from xml.etree import ElementTree
 
40
from twisted.internet import reactor, defer
40
41
 
41
42
sys.path.insert(0, os.path.abspath("."))
42
43
 
43
44
from contrib.dbus_util import DBusRunner
44
 
from contrib.testing.testcase import (
45
 
    FakeMain, 
46
 
    DBusGMainLoop, 
47
 
    DBusInterface, 
48
 
    FakeNetworkManager,
49
 
)
50
 
 
51
 
from ubuntuone.platform.dbus_interface import (
 
45
from magicicadaclient.platform.dbus_interface import (
52
46
    DBUS_IFACE_SYNC_NAME,
53
47
    DBUS_IFACE_STATUS_NAME,
54
48
    DBUS_IFACE_EVENTS_NAME,
58
52
    DBUS_IFACE_FOLDERS_NAME,
59
53
    DBUS_IFACE_PUBLIC_FILES_NAME,
60
54
)
61
 
from ubuntuone.platform.tools import DBusClient
62
 
from twisted.internet import reactor, defer
 
55
from magicicadaclient.platform.tools import DBusClient
 
56
from magicicadaclient.testing.testcase import (
 
57
    FakeMain,
 
58
    DBusGMainLoop,
 
59
    DBusInterface,
 
60
    FakeNetworkManager,
 
61
)
63
62
 
64
63
 
65
64
iface_path = ((DBUS_IFACE_SYNC_NAME, '/'), (DBUS_IFACE_CONFIG_NAME, '/config'),
206
205
            for dir in dirs:
207
206
                os.chmod(os.path.join(dirpath, dir), 0777)
208
207
        shutil.rmtree(tmp_dir)
209