Added a test for lines 106-107 of game.py
This commit is contained in:
parent
7cd4721daa
commit
8e0b8d4fee
|
@ -596,3 +596,8 @@ class TestGame(unittest.TestCase):
|
|||
self.assertEqual(self.game.state, GameMode.CREDITS)
|
||||
self.game.display_actions(DisplayActions.MOUSE, 21, 21)
|
||||
self.game.display_actions(DisplayActions.REFRESH)
|
||||
|
||||
self.game.state = GameMode.CREDITS
|
||||
self.game.handle_key_pressed(KeyValues.ENTER)
|
||||
|
||||
self.assertEqual(self.game.state, GameMode.MAINMENU)
|
||||
|
|
Loading…
Reference in New Issue