def test_if_best_declaration_works_correctly_when_there_are_announcements_of_the_same_type( self): player = Player() player.set_hand((['10c', 'Jc', 'Qc', 'Kc', 'Jh', 'Qh', 'Kh', 'Ah'])) res = ['Jh', 'Qh', 'Kh', 'Ah'] self.assertEqual(res, player.best_announcement())
def test_if_best_declaration_works_correctly_when_all_announcements_are_different( self): player = Player() player.set_hand((['10c', 'Jc', 'Qc', 'Kc', 'Qh', 'Kh', 'Ah'])) res = ['10c', 'Jc', 'Qc', 'Kc'] self.assertEqual(res, player.best_announcement())