Пример #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)
Пример #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)
Пример #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)
Пример #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)