Exemplo n.º 1
0
 def test_HandType_straight_low(self):
     x = PokerHand(['SA', 'D2', 'H3', 'C4', 'S5'])
     self.assertEqual(str(x.get_hand_type()), "HandType.Straight")
Exemplo n.º 2
0
 def test_HandType_high_card(self):
     x = PokerHand(['SA', 'C3', 'SQ', 'SJ', 'ST'])
     self.assertEqual(str(x.get_hand_type()), "HandType.HighC")
Exemplo n.º 3
0
 def test_HandType_straight_flush_low(self):
     x = PokerHand(['SA', 'S2', 'S3', 'S4', 'S5'])
     self.assertEqual(str(x.get_hand_type()), "HandType.FiveSF")
Exemplo n.º 4
0
 def test_HandType_two_pair(self):
     x = PokerHand(['SA', 'DA', 'SQ', 'DQ', 'CT'])
     self.assertEqual(str(x.get_hand_type()), "HandType.TwoP")
Exemplo n.º 5
0
 def test_HandType_pair(self):
     x = PokerHand(['SA', 'SK', 'SQ', 'DQ', 'ST'])
     self.assertEqual(str(x.get_hand_type()), "HandType.OneP")
Exemplo n.º 6
0
 def test_HandType_straight(self):
     x = PokerHand(['SA', 'SK', 'SQ', 'SJ', 'DT'])
     self.assertEqual(str(x.get_hand_type()), "HandType.Straight")
Exemplo n.º 7
0
 def test_HandType_trip(self):
     x = PokerHand(['SA', 'DA', 'HA', 'SJ', 'ST'])
     self.assertEqual(str(x.get_hand_type()), "HandType.Trip")
Exemplo n.º 8
0
 def test_HandType_flush(self):
     x = PokerHand(['SA', 'SK', 'SQ', 'SJ', 'S4'])
     self.assertEqual(str(x.get_hand_type()), "HandType.Flush")
Exemplo n.º 9
0
 def test_HandType_full_house(self):
     x = PokerHand(['SA', 'SA', 'HA', 'DT', 'ST'])
     self.assertEqual(str(x.get_hand_type()), "HandType.FullH")
Exemplo n.º 10
0
 def test_HandType_four_of_a_kind(self):
     x = PokerHand(['SA', 'SA', 'DA', 'CA', 'ST'])
     self.assertEqual(str(x.get_hand_type()), "HandType.FourK")
Exemplo n.º 11
0
 def test_HandType_straight_flush(self):
     x = PokerHand(['SA', 'SK', 'SQ', 'SJ', 'ST'])
     self.assertEqual(str(x.get_hand_type()), "HandType.FiveSF")
Exemplo n.º 12
0
 def test_HandType_five_of_a_kind(self):
     x = PokerHand(['SA', 'SA', 'HA', 'CA', 'DA'])
     self.assertEqual(str(x.get_hand_type()), "HandType.FiveK")