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