1
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
2
# Copyright 2013 Canonical
4
# This program is free software: you can redistribute it and/or modify it
5
# under the terms of the GNU General Public License version 3, as published
6
# by the Free Software Foundation.
8
""" Tests for Ubuntu System Settings """
10
from __future__ import absolute_import
12
from autopilot.platform import model
13
from autopilot.testcase import AutopilotTestCase
15
class UbuntuSystemSettingsTestCase(AutopilotTestCase):
16
""" Base class for Ubuntu System Settings """
18
super(UbuntuSystemSettingsTestCase, self).setUp()
20
def launch_system_settings(self):
21
params = ['/usr/bin/system-settings']
22
if (model() <> 'Desktop'):
23
params.append('--desktop_file_hint=/usr/share/applications/unity8.desktop')
24
self.app = self.launch_test_application(