示例#1
0
 def test_straight_is_less_than_full_house(self):
     hand1, hand2 = Hand(self.straight), Hand(self.triple_2_10_full_house)
     self.assertLess(hand1, hand2)
示例#2
0
 def test_triple_2_10_full_house_is_less_than_3_4_full_house(self):
     hand1, hand2 = Hand(self.triple_2_10_full_house), Hand(
         self.triple_3_4_full_house)
     self.assertLess(hand1, hand2)
示例#3
0
 def test_flush_is_less_than_full_house(self):
     hand1, hand2 = Hand(self.flush), Hand(self.triple_2_10_full_house)
     self.assertLess(hand1, hand2)
示例#4
0
 def test_K_Q_full_house_is_less_than_ace_full_house(self):
     hand1, hand2 = Hand(self.K_Q_full_house), Hand(self.ace_full_house)
     self.assertLess(hand1, hand2)
示例#5
0
 def test_triple_2_10_full_house_is_greater_than_triple_ace(self):
     hand1, hand2 = Hand(self.triple_2_10_full_house), Hand(self.triple_ace)
     self.assertGreater(hand1, hand2)
示例#6
0
 def test_king_straight_is_less_than_broadway(self):
     hand1, hand2 = Hand(self.king_straight), Hand(self.broadway)
     self.assertLess(hand1, hand2)
示例#7
0
 def test_king_straight_is_greater_than_triple_ace(self):
     hand1, hand2 = Hand(self.king_straight), Hand(self.triple_ace)
     self.assertGreater(hand1, hand2)
示例#8
0
 def test_six_straight_is_greater_than_wheel(self):
     hand1, hand2 = Hand(self.six_straight), Hand(self.wheel)
     self.assertGreater(hand1, hand2)
示例#9
0
 def test_king_straight_is_greater_than_six_straight(self):
     hand1, hand2 = Hand(self.king_straight), Hand(self.six_straight)
     self.assertGreater(hand1, hand2)
示例#10
0
 def test_wheel_is_greater_than_triple_ace(self):
     hand1, hand2 = Hand(self.wheel), Hand(self.triple_ace)
     self.assertGreater(hand1, hand2)
示例#11
0
 def test_triple_2_ace_high_is_lower_than_triple_3(self):
     hand1, hand2 = Hand(self.triple_2_ace_high), Hand(self.triple_3)
     self.assertLess(hand1, hand2)
示例#12
0
 def test_triple_2_ace_high_is_greater_than_than_triple_2(self):
     hand1, hand2 = Hand(self.triple_2_ace_high), Hand(self.triple_2)
     self.assertGreater(hand1, hand2)
示例#13
0
 def test_triple_ace_is_greater_than_triple_K(self):
     hand1, hand2 = Hand(self.triple_ace), Hand(self.triple_king)
     self.assertGreater(hand1, hand2)
示例#14
0
 def test_triple_ace_is_greater_than_two_pair_A_and_K(self):
     hand1, hand2 = Hand(self.triple_ace), Hand(self.two_pair_A_and_K)
     self.assertGreater(hand1, hand2)