1
1
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
2
# Copyright 2013 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.
3
# Copyright (C) 2013, 2014 Canonical Ltd
5
# This program is free software: you can redistribute it and/or modify
6
# it under the terms of the GNU General Public License version 3 as
7
# published by the Free Software Foundation.
9
# This program is distributed in the hope that it will be useful,
10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
# GNU General Public License for more details.
14
# You should have received a copy of the GNU General Public License
15
# along with this program. If not, see <http://www.gnu.org/licenses/>.
8
17
"""Reminders app autopilot tests."""
10
19
from __future__ import absolute_import
12
from autopilot.matchers import Eventually
13
from testtools.matchers import Equals, GreaterThan
15
from reminders.tests import RemindersAppTestCase
21
from reminders import tests
19
25
logger = logging.getLogger(__name__)
22
class TestMainWindow(RemindersAppTestCase):
25
super(TestMainWindow, self).setUp()
27
self.assertThat(self.main_view.visible, Eventually(Equals(True)))
29
def test_blank(setup):
30
#jenkins requires at least one test
28
class RemindersTestCaseWithoutAccount(tests.RemindersAppTestCase):
30
def test_open_application_without_account(self):
31
"""Test that the No account dialog is visible."""
32
self.assertTrue(self.app.main_view.no_account_dialog.visible)