Esempio n. 1
0
 def test_check_game_when_not_enough_moves(self):
     game = Game(dimensions=(6,6))
     self.assertEqual(game.check_game_state(), None)
Esempio n. 2
0
 def test_check_game_we_have_run_out_of_moves(self):
     game = Game(dimensions=(6,6))
     game.move = 36
     with self.assertRaises(SystemExit) as cm:
         game.check_game_state()
     self.assertEqual(cm.exception.code, "It's a draw")