~chicharreros/magicicada-client/1.0

« back to all changes in this revision

Viewing changes to ubuntuone/syncdaemon/tests/test_interaction_interfaces.py

  • Committer: Magicicada Bot
  • Author(s): Natalia
  • Date: 2018-04-24 15:59:00 UTC
  • mfrom: (1442.1.1 use-protocol-from-wheel)
  • Revision ID: magicicada_bot-20180424155900-2mwasih60li4jh2p
[r=facundo] - Use protocol from wheel release.
- Fix copyright headers from modified files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# -*- coding: utf-8 -*-
2
2
#
3
3
# Copyright 2011-2015 Canonical Ltd.
 
4
# Copyright 2015-2018 Chicharreros (https://launchpad.net/~chicharreros)
4
5
#
5
6
# This program is free software: you can redistribute it and/or modify it
6
7
# under the terms of the GNU General Public License version 3, as published
31
32
import logging
32
33
import os
33
34
 
 
35
from magicicadaprotocol.protocol_pb2 import AccountInfo
34
36
from twisted.internet import defer
35
37
from ubuntuone.devtools.handlers import MementoHandler
36
 
try:
37
 
    from ubuntuone.networkstate.networkstates import ONLINE
38
 
except ImportError:
39
 
    from ubuntuone.networkstate import ONLINE
40
 
from ubuntuone.platform.tests.ipc.test_perspective_broker import (
41
 
    FakeNetworkManagerState,
42
 
)
43
38
 
44
39
from contrib.testing.testcase import (
45
40
    FAKED_CREDENTIALS,
50
45
    FakeMainTestCase,
51
46
    skipIfOS,
52
47
)
 
48
from ubuntuone.networkstate.networkstates import ONLINE
53
49
from ubuntuone.platform import make_dir, make_link
54
 
from ubuntuone.storageprotocol.protocol_pb2 import AccountInfo
 
50
from ubuntuone.platform.tests.ipc.test_perspective_broker import (
 
51
    FakeNetworkManagerState,
 
52
)
55
53
from ubuntuone.syncdaemon import (
56
54
    config,
57
55
    interaction_interfaces,