~ci-train-bot/ubuntu-system-settings/ubuntu-system-settings-ubuntu-zesty-1721

« back to all changes in this revision

Viewing changes to tests/autopilot/ubuntu_system_settings/tests/__init__.py

  • Committer: VĂ­ctor R. Ruiz
  • Date: 2013-10-02 15:29:38 UTC
  • mto: This revision was merged to the branch mainline in revision 518.
  • Revision ID: victor.ruiz@canonical.com-20131002152938-38tos3jjp3mp15s2
Autopilot tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
 
2
# Copyright 2013 Canonical
 
3
#
 
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.
 
7
 
 
8
""" Tests for Ubuntu System Settings """
 
9
 
 
10
from __future__ import absolute_import
 
11
 
 
12
from autopilot.platform import model
 
13
from autopilot.testcase import AutopilotTestCase
 
14
 
 
15
class UbuntuSystemSettingsTestCase(AutopilotTestCase):
 
16
    """ Base class for Ubuntu System Settings """
 
17
    def setUp(self):
 
18
        super(UbuntuSystemSettingsTestCase, self).setUp()
 
19
 
 
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(
 
25
            *params,
 
26
            app_type='qt')
 
27