~ubuntu-clock-dev/ubuntu-clock-app/reboot-packaging

« back to all changes in this revision

Viewing changes to app/tests/autopilot/ubuntu-clock-app/main/test_main.py

  • Committer: Nekhelesh Ramananthan
  • Date: 2014-07-29 12:00:28 UTC
  • mto: (37.1.1 reboot)
  • mto: This revision was merged to the branch mainline in revision 37.
  • Revision ID: krnekhelesh@gmail.com-20140729120028-821ujpa5c9li7w5a
Remove hardcoded time format in the settings page and follow the user locale

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
 
 
3
"""Tests for the Hello World"""
 
4
 
 
5
from autopilot.matchers import Eventually
 
6
from textwrap import dedent
 
7
from testtools.matchers import Is, Not, Equals
 
8
from testtools import skip
 
9
import os
 
10
from ubuntu-clock-app import UbuntuTouchAppTestCase
 
11
 
 
12
 
 
13
class MainTests(UbuntuTouchAppTestCase):
 
14
    """Generic tests for the Hello World"""
 
15
 
 
16
    test_qml_file = "%s/%s.qml" % (os.path.dirname(os.path.realpath(__file__)),"../../../../ubuntu-clock-app")
 
17
 
 
18
    def test_0_can_select_mainView(self):
 
19
        """Must be able to select the mainview."""
 
20
 
 
21
        mainView = self.get_mainview()
 
22
        self.assertThat(mainView.visible,Eventually(Equals(True)))
 
23