def test_table_hand_nominal_result(self, table, hand, combo_type, cards_items, ratio_value): combo = Combo(table=Table(table), hand=Hand(hand), ratio_check=True) assert combo.type == combo_type assert combo.cards.items == cards_items assert combo.ratio._value == ratio_value assert combo.ratio.is_checked
def test_table_hand_nominal_result(self, table, hand, combo_type, cards_items, is_real, is_nominal, is_half_nominal): combo = Combo(table=Table(table), hand=Hand(hand), nominal_check=True) assert combo.type == combo_type assert combo.cards.items == cards_items assert combo.is_real == is_real assert combo.is_nominal == is_nominal assert combo.is_half_nominal == is_half_nominal
def test_cards_smaller(self, init_cards1, init_cards2): assert Combo(cards=Cards(init_cards1)) < Combo( cards=Cards(init_cards2))
def test_cards_string_smaller(self, init_cards1, init_cards2): assert Combo(cards_string=init_cards1) < Combo( cards_string=init_cards2)
def test_cards_greater(self, init_cards1, init_cards2): assert Combo(cards=Cards(init_cards1)) > Combo( cards=Cards(init_cards2))
def test_cards_string_greater(self, init_cards1, init_cards2): assert Combo(cards_string=init_cards1) > Combo( cards_string=init_cards2)
def test_cards_equal(self, init_cards1, init_cards2): assert Combo(cards=Cards(init_cards1)) == Combo( cards=Cards(init_cards2))
def test_cards_string_equal(self, init_cards1, init_cards2): assert Combo(cards_string=init_cards1) == Combo( cards_string=init_cards2)
def test_cards_result(self, init_cards, combo_type, cards_items): combo = Combo(cards=Cards(init_cards)) assert combo.type == combo_type assert combo.cards.items == cards_items
def test_cards_string_result(self, init_cards, combo_type, cards_items): combo = Combo(cards_string=init_cards) assert combo.type == combo_type assert combo.cards.items == cards_items