Beispiel #1
0
 def setUp(self):
     self.hand = values_as_hand([2, 2, 3, 4, 5])
Beispiel #2
0
 def setUp(self):
     self.hand = values_as_hand([1, 1, 1, 4, 5])
Beispiel #3
0
 def setUp(self):
     self.hand = values_as_hand([9, 9, 9, 9, 7])
Beispiel #4
0
 def runTest(self):
     one_pair = values_as_hand([2, 2, 5, 5, 6])
     two_pair = values_as_hand([1, 1, 3, 4, 7])
     self.assertGreater(one_pair, two_pair)
Beispiel #5
0
 def setUp(self):
     self.hand = values_as_hand([2, 7, 4, 5, 6])
Beispiel #6
0
def test_hand_category(values, category):
    hand = values_as_hand(values)
    return test_equal('%sTest' % category, hand.best_category, category)