def test_precedence_one_pair(): assert main.find_rank(main.one_pair) == len(main.value_pair_list) - 7
def test_precedence_high_card(): assert main.find_rank(main.high_card) == len(main.value_pair_list) - 8
def test_precedence_three_kind(): assert main.find_rank(main.three_kind) == len(main.value_pair_list) - 6
def test_precedence_straight(): assert main.find_rank(main.straight) == len(main.value_pair_list) - 5
def test_precedence_flush(): assert main.find_rank(main.flush) == len(main.value_pair_list) - 4
def test_precedence_full_house(): assert main.find_rank(main.full_house) == len(main.value_pair_list) - 3
def test_precedence_four_kind(): assert main.find_rank(main.four_kind) == len(main.value_pair_list) - 2