Esempio n. 1
0
 def test_promote_knight(self, input):
     """ Test for promote() knight """
     game = Game(cmd_mode=True)
     self.assertEqual(game.promote().name, Piece("n").name)
Esempio n. 2
0
 def test_promote_rook(self, input):
     """ Test for promote() rook """
     game = Game(cmd_mode=True)
     self.assertEqual(game.promote().name, Piece("r").name)
Esempio n. 3
0
 def test_promote_bishop(self, input):
     """ Test for promote() bishop """
     game = Game(cmd_mode=True)
     self.assertEqual(game.promote().name, Piece("B").name)
Esempio n. 4
0
 def test_promote_queen(self, input):
     """ Test for promote() queen """
     game = Game(cmd_mode=True)
     self.assertEqual(game.promote().name, Piece("Q").name)