def test_rank_player_hand_three_of_a_kind(self):
     self.assertEqual([4, [2, 2, 2, 7, 8], [[2, 3]]], rank_player_hand(['2D', '2H', '2C', '7S', '8D']))
 def test_rank_player_hand_one_pair(self):
     self.assertEqual([2, [2, 2, 3, 7, 8], [[2, 2]]], rank_player_hand(['2D', '2H', '3C', '7S', '8D']))
 def test_rank_player_hand_two_pairs(self):
     self.assertEqual([3, [2, 2, 3, 3, 8], [[2, 2],[3,2]]], rank_player_hand(['2D', '2H', '3C', '3S', '8D']))
 def test_rank_player_hand_royal_flush(self):
     self.assertEqual([10], rank_player_hand(['TD', 'JD', 'QD', 'KD', 'AD']))
 def test_rank_player_hand_high_card(self):
     self.assertEqual([1, [2, 3, 6, 8, 11]], rank_player_hand(['2D', '3H', '6S', '8C', 'JD']))
 def test_rank_player_hand_straight_flush(self):
     self.assertEqual([9, [2, 3, 4, 5, 6]], rank_player_hand(['2D', '3D', '4D', '5D', '6D']))
 def test_rank_player_hand_four_of_a_kind(self):
     self.assertEqual([8, [2, 2, 2, 2, 8], [[2, 4]]], rank_player_hand(['2D', '2H', '2C', '2S', '8D']))
 def test_rank_player_hand_full_house(self):
     self.assertEqual([7, [2, 2, 2, 7, 7], [[2, 3],[7, 2]]], rank_player_hand(['2D', '2H', '2C', '7S', '7D']))
 def test_rank_player_hand_flush(self):
     self.assertEqual([6, [2, 3, 6, 8, 11]], rank_player_hand(['2D', '3D', '6D', '8D', 'JD']))
 def test_rank_player_hand_straight(self):
     self.assertEqual([5, [2, 3, 4, 5, 6]], rank_player_hand(['2D', '3H', '4S', '5C', '6D']))