Ejemplo n.º 1
0
def test_duplicates_in_foil(unbalanced_pack: MtgPack):
    card = unbalanced_pack.content["nonlandCommon"]["cards"][0]
    card.foil = True
    unbalanced_pack.content["foil"] = {"cards": [card], "balance": False}
    assert not unbalanced_pack.has_duplicates()
Ejemplo n.º 2
0
def test_duplicates(unbalanced_pack: MtgPack):
    assert not unbalanced_pack.has_duplicates()
    card = unbalanced_pack.content["nonlandCommon"]["cards"][0]
    unbalanced_pack.content["nonlandCommon"]["cards"].append(card)
    assert unbalanced_pack.has_duplicates()