~bfiller/gallery-app/remove-texture

« back to all changes in this revision

Viewing changes to tests/autopilot/goodhope/tests/test_mainwindow.py

added initial autopilot structure. No actual test yet.

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 2012 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 the Gallery App"""
 
9
 
 
10
from __future__ import absolute_import
 
11
 
 
12
from testtools.matchers import Equals, NotEquals
 
13
from autopilot.matchers import Eventually
 
14
 
 
15
from goodhope.tests import GoodhopeTestCase
 
16
 
 
17
import time
 
18
import os
 
19
from os import path
 
20
 
 
21
class TestMainWindow(GoodhopeTestCase):
 
22
    """Tests the main gallery features"""
 
23
 
 
24
    """ This is needed to wait for the application to start.
 
25
        In the testfarm, the application may take some time to show up."""
 
26
    def setUp(self):
 
27
        super(TestMainWindow, self).setUp()
 
28
        self.assertThat(self.main_window.get_qml_view().visible, Eventually(Equals(True)))
 
29
 
 
30
    def tearDown(self):
 
31
        super(TestMainWindow, self).tearDown()
 
32
 
 
33
    """Dummy Test *changeme* """
 
34
    def test_dummy(self):
 
35
        self.assertThat(True, Equals(True))