~loic.molinari/ubuntu-ui-toolkit/uitk-quad

« back to all changes in this revision

Viewing changes to tests/autopilot/ubuntuuitoolkit/tests/test_launcher.py

  • Committer: Leonardo Arias Fonseca
  • Date: 2015-04-14 21:02:06 UTC
  • mto: This revision was merged to the branch mainline in revision 1485.
  • Revision ID: leo.arias@canonical.com-20150414210206-mdnp0ul72iqnj089
Removed python2 support from autopilot tests and helpers.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
2
2
#
3
 
# Copyright (C) 2014 Canonical Ltd.
 
3
# Copyright (C) 2014, 2015 Canonical Ltd.
4
4
#
5
5
# This program is free software; you can redistribute it and/or modify
6
6
# it under the terms of the GNU Lesser General Public License as published by
30
30
        command_line.append('-touch')
31
31
        return command_line
32
32
 
33
 
    def setUp(self):
34
 
        super(LauncherTouchTestCase, self).setUp()
35
 
 
36
33
    def test_apparent_touch_screen(self):
37
34
        textfield = self.main_view.select_single(objectName="textarea")
38
35
        # Trigger handlers as a courtesy to a watching person
46
43
    test_qml_file_path = os.path.join(
47
44
        dir_path, 'test_launcher.testcase.qml')
48
45
 
49
 
    def setUp(self):
50
 
        super(LauncherQtTestTestCase, self).setUp()
51
 
 
52
46
    def test_can_run_qt_test_case(self):
53
47
        textfield = self.main_view.select_single(objectName="textarea")
54
48
        self.assertThat(textfield.text,