~rpadovani/ubuntu-calculator-app/calcDate141226

« back to all changes in this revision

Viewing changes to app/tests/autopilot/ubuntu_calculator_app/tests/test_main.py

  • Committer: Riccardo Padovani
  • Date: 2014-12-20 23:29:00 UTC
  • mfrom: (41.1.1 reboot)
  • Revision ID: rpadovani@ubuntu.com-20141220232900-trr5f7g09w6w94d5
Ported autopilot suite from old app.

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
"""Calculator app autopilot tests."""
 
4
 
 
5
from autopilot.matchers import Eventually
 
6
from testtools.matchers import Equals
 
7
 
 
8
from ubuntu_calculator_app.tests import CalculatorAppTestCase
 
9
 
 
10
 
 
11
class MainTestCase(CalculatorAppTestCase):
 
12
 
 
13
    def setUp(self):
 
14
        super(MainTestCase, self).setUp()
 
15
 
 
16
    def test_calculator_visible(self):
 
17
        self.assertThat(self.app.main_view.visible,
 
18
                        Eventually(Equals(True)))