20 """Tests for system integration."""
25 from autopilot
import platform
29 from testtools.matchers._basic
import Equals
31 class SystemIntegrationTests(UnityTestCase):
33 scenarios = _get_device_emulation_scenarios()
35 @unittest.skipIf(platform.model() ==
"Desktop",
"Test is broken on otto, see bug 1281634.")
36 def test_networkmanager_integration(self):
40 pid = subprocess.check_output([
"pidof",
"-s",
"unity8"], universal_newlines=
True)
41 subprocess.check_call(
"pkcheck --action-id org.freedesktop.NetworkManager.enable-disable-network --process " + pid, shell=
True)