1
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
2
# Copyright 2012 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 the Gallery App"""
10
from __future__ import absolute_import
12
from testtools.matchers import Equals, NotEquals
13
from autopilot.matchers import Eventually
15
from goodhope.tests import GoodhopeTestCase
21
class TestMainWindow(GoodhopeTestCase):
22
"""Tests the main gallery features"""
24
""" This is needed to wait for the application to start.
25
In the testfarm, the application may take some time to show up."""
27
super(TestMainWindow, self).setUp()
28
self.assertThat(self.main_window.get_qml_view().visible, Eventually(Equals(True)))
31
super(TestMainWindow, self).tearDown()
33
"""Dummy Test *changeme* """
35
self.assertThat(True, Equals(True))