~ubuntu-branches/ubuntu/precise/ubuntuone-client/precise-201201132228

« back to all changes in this revision

Viewing changes to tests/platform/__init__.py

  • Committer: Package Import Robot
  • Author(s): Rodney Dawes
  • Date: 2011-12-21 15:46:25 UTC
  • mfrom: (1.1.56)
  • Revision ID: package-import@ubuntu.com-20111221154625-ujvunri4frsecj2k
Tags: 2.99.0-0ubuntu1
* New upstream release.
  - Verify timestamp to avoid invalid auth failures (LP: #692597)
  - Files in new UDFs not uploaded due to filtering (LP: #869920)
* debian/patches:
  - Remove upstreamed patches

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
"""Platform related code."""
2
2
import sys
3
3
 
4
 
setup_action_queue_test = None
5
 
setup_main_test = None
6
 
get_main_params = None
7
 
_GeneralINotifyProcessor = None
8
 
IPCTestCase = None
9
 
 
10
4
if sys.platform.startswith('linux'):
11
 
    from tests.platform import linux as linux_test
12
 
    setup_action_queue_test = linux_test.setup_action_queue_test
13
 
    setup_main_test = linux_test.setup_main_test
14
 
    get_main_params = linux_test.get_main_params
15
 
    from ubuntuone.platform.linux import filesystem_notifications
16
 
    _GeneralINotifyProcessor = filesystem_notifications._GeneralINotifyProcessor
17
 
    from tests.platform.linux.test_dbus import DBusTwistedTestCase
18
 
    IPCTestCase = DBusTwistedTestCase
 
5
    from tests.platform.linux import test_dbus
 
6
    ipc_source = test_dbus
19
7
else:
20
 
    from tests.platform import windows as windows_test
21
 
    setup_action_queue_test = windows_test.setup_action_queue_test
22
 
    setup_main_test = windows_test.setup_main_test
23
 
    get_main_params = windows_test.get_main_params
24
 
    from ubuntuone.platform.windows import filesystem_notifications
25
 
    _GeneralINotifyProcessor = filesystem_notifications.NotifyProcessor
26
 
    from tests.platform.windows.test_ipc import PerspectiveBrokerTestCase
27
 
    IPCTestCase = PerspectiveBrokerTestCase
 
8
    from tests.platform.windows import test_ipc
 
9
    ipc_source = test_ipc
28
10
 
 
11
IPCTestCase = ipc_source.IPCTestCase
 
12
StatusTestCase = ipc_source.StatusTestCase
 
13
EventsTestCase = ipc_source.EventsTestCase
 
14
SyncDaemonTestCase = ipc_source.SyncDaemonTestCase
 
15
FileSystemTestCase = ipc_source.FileSystemTestCase
 
16
SharesTestCase = ipc_source.SharesTestCase
 
17
ConfigTestCase = ipc_source.ConfigTestCase
 
18
FoldersTestCase = ipc_source.FoldersTestCase
 
19
PublicFilesTestCase = ipc_source.PublicFilesTestCase