def __init__ (self, cards) : ''' Give the player random name ''' #possible names names = ["Christian", "Erlend", "Ola", "Tommy Woa", "Merethe<3", "Benny", "Janis"] # set the deck of the player self.cards = cards self.points = Pointcalc_Poker.calculatePoints(cards) #set the random name self.name = names[randint(0, 6)]
def test_testCalculatePoints_flush2(self): self.assertEqual(Pointcalc_Poker.calculatePoints(self.pokerCards2), 29)
def test_testCalculatePoints_flush(self): self.assertEqual(Pointcalc_Poker.calculatePoints(self.pokerCards), 120000)