~azzar1/unity/scale-left-padding

« back to all changes in this revision

Viewing changes to tests/autopilot/autopilot/tests/test_launcher.py

  • Committer: Andrea Azzarone
  • Date: 2011-12-19 22:18:53 UTC
  • mfrom: (1792 unity)
  • mto: This revision was merged to the branch mainline in revision 1833.
  • Revision ID: azzaronea@gmail.com-20111219221853-wyy8fqwxk78s85ct
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from testtools import TestCase
 
2
from testtools.matchers import Equals
 
3
 
 
4
from autopilot.emulators.unity import Launcher
 
5
from autopilot.glibrunner import GlibRunner
 
6
 
 
7
class LauncherTests(TestCase):
 
8
    run_test_with = GlibRunner
 
9
 
 
10
    def setUp(self):
 
11
        super(LauncherTests, self).setUp()
 
12
        self.server = Launcher()
 
13
 
 
14
    def test_reveal_on_mouse_to_edge(self):
 
15
        self.assertThat(self.server.is_showing(), Equals(False))
 
16
        self.server.move_mouse_to_reveal_pos()
 
17
        self.assertThat(self.server.is_showing(), Equals(True))