1
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
3
from autopilot.matchers import Eventually
4
from testtools.matchers import Equals
5
from Bankin import tests
8
class MainViewTestCase(tests.BaseTestCase):
9
"""Tests for the mainview"""
12
super(MainViewTestCase, self).setUp()
14
def test_click_button(self):
15
# Find and click the button
16
button = self.app.main_view.get_button()
17
self.app.pointing_device.click_object(button)
19
# Make an assertion about what should happen
20
label = self.app.main_view.get_label()
21
self.assertThat(label.text, Eventually(Equals('..world!')))
b'\\ No newline at end of file'