def runTest(self): BinBuilder(self.rouletteWheel) currentTable = Table() currentTable.Table(self.rouletteWheel) myOutcome = self.rouletteWheel.getOutcome('Split 5-6') myBet = Bet(10, myOutcome) myOutcome2 = self.rouletteWheel.getOutcome('Number 1') myBet2 = Bet(191, myOutcome2) currentTable.placeBet(myBet) """Exception needs to be raised because the bet exceeds the table limit""" with self.assertRaises(InvalidBet): currentTable.placeBet(myBet2) myOutcome3 = self.rouletteWheel.getOutcome('Black Bet') myBet3 = Bet(75, myOutcome3) currentTable.placeBet(myBet3) """Check if bets are indeed at the table""" activeBets = [x.outcome.name for x in currentTable.__iter__()] self.assertIn(myOutcome, activeBets) self.assertIn(myOutcome3, activeBets)