def test_nested_descriptions(description): with pytest.raises(NestedDescriptions): to_model(description)
def test_convert(description, model): assert to_model(description) == model
def test_mix(description, model): assert to_model(description) == model
def test_variant_to_model(variant, model): assert to_model(variant, "variant") == model
def test_variants_to_model(variants, model): assert to_model(variants, "variants") == model
def test_inserted_to_model(description, model): assert to_model(description, "inserted") == model
def test_reference_to_model(reference, model): assert to_model(reference, "reference") == model
def test_length_to_model(description, model): assert to_model(description, "length") == model
def test_location_to_model(description, model): assert to_model(description, "location") == model
def test_ambiguities(description, start_rule, model): assert to_model(description, start_rule) == model