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')
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')