def test_high_cards(self):
     self.assertEqual(rank_hand(separate_ranks_and_suits(TEST[8][0])),
                      TEST[8][1])
 def test_one_pair(self):
     self.assertEqual(rank_hand(separate_ranks_and_suits(TEST[7][0])),
                      TEST[7][1])
 def test_three_of_a_kind(self):
     self.assertEqual(rank_hand(separate_ranks_and_suits(TEST[5][0])),
                      TEST[5][1])
 def test_straight(self):
     self.assertEqual(rank_hand(separate_ranks_and_suits(TEST[4][0])),
                      TEST[4][1])
 def test_flush(self):
     self.assertEqual(rank_hand(separate_ranks_and_suits(TEST[3][0])),
                      TEST[3][1])
 def test_full_house(self):
     self.assertEqual(rank_hand(separate_ranks_and_suits(TEST[2][0])),
                      TEST[2][1])