# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
# Copyright 2012 Canonical
#
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 3, as published
# by the Free Software Foundation.

"""Tests for the QML PageStack component."""

from autopilot.matchers import Eventually
from textwrap import dedent
from testtools.matchers import Is, Not, Equals
from testtools import skip
import os
from tavastia.tests import TavastiaTestCase

class PageStackTests(TavastiaTestCase):
    """Tests for PageStack component."""

    test_qml_file = "%s/%s.qml" % (os.path.dirname(os.path.realpath(__file__)),"PageStackTests")

    def test_can_select_pagestack(self):
        """Must be able to select the Qml PageStack component."""

        obj = self.app.select_single('PageStack')
        self.assertThat(obj, Not(Is(None)))
    

