~artmello/ubuntu-calendar-app/ubuntu-calendar-app-adaptive_layout

« back to all changes in this revision

Viewing changes to tests/autopilot/ubuntu_calendar_app/tests/test_calendar.py

  • Committer: Omer Akram
  • Date: 2013-05-27 15:09:40 UTC
  • mto: This revision was merged to the branch mainline in revision 36.
  • Revision ID: om26er@ubuntu.com-20130527150940-15q8vpdfl52drukn
add initial autopilot tests structure

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
"""Calendar app autopilot tests."""
 
9
 
 
10
from __future__ import absolute_import
 
11
 
 
12
from autopilot.matchers import Eventually
 
13
from autopilot.platform import model
 
14
from testtools.matchers import Equals
 
15
 
 
16
from ubuntu_calendar_app.tests import CalendarTestCase
 
17
 
 
18
 
 
19
class CalendarTestCase(CalendarTestCase):
 
20
 
 
21
    def setUp(self):
 
22
        super(CalendarTestCase, self).setUp()
 
23
        self.assertThat(
 
24
            self.main_window.get_qml_view().visible, Eventually(Equals(True)))
 
25
 
 
26
    def tearDown(self):
 
27
        super(CalendarTestCase, self).tearDown()
 
28
 
 
29
    def test_this(self):
 
30
        print "yy"