Exemple #1
0
 def test_high_card_wins(self):
     handOne = Hand("KS 2H 5C JD TD")
     handTwo = Hand("3S 4C 9D QC 6H")
     result = handOne.compare_with(handTwo)
     self.assertEqual("Win", result)
Exemple #2
0
 def test_highest_pair_wins(self):
     handOne = Hand("KS KH 5C JD TD")
     handTwo = Hand("2D 2C 9D AC 6H")
     result = handOne.compare_with(handTwo)
     self.assertEqual("Win", result)
Exemple #3
0
 def test_three_of_a_kind_wins_pair(self):
     handOne = Hand("KS KH 5C JD TD")
     handTwo = Hand("2D 2C 2H AC 6H")
     result = handOne.compare_with(handTwo)
     self.assertEqual("Loss", result)
Exemple #4
0
 def test_high_card_pair_wins(self):
     handOne = Hand("KS KH 5C JD TD")
     handTwo = Hand("KD KC 9D AC 6H")
     result = handOne.compare_with(handTwo)
     self.assertEqual("Loss", result)