~ahayzen/volleyball2d/new-logo

« back to all changes in this revision

Viewing changes to tests/autopilot/volleyball/test_main.py

  • Committer: Andrew Hayzen
  • Date: 2014-12-14 17:51:40 UTC
  • Revision ID: ahayzen@gmail.com-20141214175140-f58uxnu5f07lu80b
* Cleanups of gameFinished and roundWon
* Add support for shell rotation
* Create separate settings page
* Add deadzone option
* Use fixtures for mocking of $HOME

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
from autopilot.matchers import Eventually
20
20
from testtools.matchers import Equals
21
21
 
22
 
import volleyball
23
 
 
24
 
 
25
 
class MainViewTestCase(volleyball.ClickAppTestCase):
 
22
from volleyball import ClickAppTestCase
 
23
 
 
24
 
 
25
class MainViewTestCase(ClickAppTestCase):
26
26
    """Generic tests for the VolleyBall"""
27
27
 
28
28
    def test_app_starts_on_menu(self):
29
29
        self.assertThat(self.main_view.visible, Eventually(Equals(True)))
30
30
        self.assertThat(self.menu_scene.visible, Eventually(Equals(True)))
 
31
        self.assertThat(self.settings.visible, Eventually(Equals(False)))
 
32
        self.assertThat(self.game_scene.visible, Eventually(Equals(False)))