@@ -1,7 +1,7 @@
1# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
1# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
3# Unity Autopilot Test Suite
3# Unity Autopilot Test Suite
4−# Copyright (C) 2013, 2014 Canonical
4+# Copyright (C) 2013, 2014, 2015 Canonical
6# This program is free software: you can redistribute it and/or modify
6# This program is free software: you can redistribute it and/or modify
7# it under the terms of the GNU General Public License as published by
7# it under the terms of the GNU General Public License as published by
@@ -26,13 +26,13 @@ import subprocess
26import time
26import time
28import fixtures
28import fixtures
29−from testtools.matchers import Equals, MismatchError
29+import ubuntuuitoolkit
30from autopilot.matchers import Eventually
30from autopilot.matchers import Eventually
31from autopilot.introspection import get_proxy_object_for_existing_process
31from autopilot.introspection import get_proxy_object_for_existing_process
32+from testtools.matchers import Equals, MismatchError
32from ubuntuuitoolkit import ubuntu_scenarios
33from ubuntuuitoolkit import ubuntu_scenarios
34from unity8 import get_binary_path
35from unity8 import get_binary_path
35−from unity8.shell.emulators import UnityEmulatorBase
36from unity8.shell.tests import UnityTestCase
36from unity8.shell.tests import UnityTestCase
38import logging
38import logging
@@ -90,10 +90,11 @@ class UpstartIntegrationTests(UnityTestCase):
90 self.addCleanup(ensure_stopped)
90 self.addCleanup(ensure_stopped)
92 def _set_proxy(self):
92 def _set_proxy(self):
93+ proxy_base = ubuntuuitoolkit.UbuntuUIToolkitCustomProxyObjectBase
93 super()._set_proxy(
94 super()._set_proxy(
94 get_proxy_object_for_existing_process(
95 get_proxy_object_for_existing_process(
95 pid=self.process.pid,
96 pid=self.process.pid,
96− emulator_base=UnityEmulatorBase,))
97+ emulator_base=proxy_base))
98 def test_no_sigstop(self):
99 def test_no_sigstop(self):
99 self.useFixture(
100 self.useFixture(