def testWinningDraw(self): o = Outcome(WinningPlayer(), WinningPlayer()) self.assertTrue(o.get_winning_strategy() is None)
def testLosingVWinning(self): o = Outcome(LosingPlayer(), WinningPlayer()) self.assertEqual("Winning Strategy", o.get_winning_strategy())
def testWinningVLosing(self): winner = WinningPlayer() loser = LosingPlayer() o = Outcome(winner, loser) self.assertEqual("Winning Strategy", o.get_winning_strategy())