Ejemplo n.º 1
0
 def test_homepage_game_started(self):
     """the game has just started, the home page must redirect to the
     play page
     """
     # let's set the session by posting to the setup page
     self.client.post(reverse('play:setupgame'), {'num_players': 2})
     # now the homepage must redirect to the play page
     return ut.get_page_redirects(self, 'home', 'play:playgame')
Ejemplo n.º 2
0
 def test_homepage_game_off(self):
     """the game is off, the home page must redirect to the setup page
     """
     ut.get_page_redirects(self, 'home', 'play:setupgame')