def test_UnstablePortal(self):
        game = generate_game_for(UnstablePortal, StonetuskBoar, CardTestingAgent, DoNothingAgent)

        for turn in range(3):
            game.play_single_turn()

        self.assertEqual(5, len(game.current_player.hand))
        self.assertTrue(game.current_player.hand[-1].is_minion())
        if game.current_player.hand[-1].mana >= 3:
            # TODO This assertion may fail, if unstable portal summons a Giant.  Don't know how to solve that issue
            self.assertEqual(3, game.current_player.hand[-1].mana_cost() - game.current_player.hand[-1].mana)
dataset/ETHPy150Open danielyule/hearthbreaker/tests/card_tests/mage_tests.py/TestMage.test_UnstablePortal/swapped operands of `-`