예제 #1
0
def test_nested_descriptions(description):
    with pytest.raises(NestedDescriptions):
        to_model(description)
예제 #2
0
def test_convert(description, model):
    assert to_model(description) == model
예제 #3
0
def test_mix(description, model):
    assert to_model(description) == model
예제 #4
0
def test_variant_to_model(variant, model):
    assert to_model(variant, "variant") == model
예제 #5
0
def test_variants_to_model(variants, model):
    assert to_model(variants, "variants") == model
예제 #6
0
def test_inserted_to_model(description, model):
    assert to_model(description, "inserted") == model
예제 #7
0
def test_reference_to_model(reference, model):
    assert to_model(reference, "reference") == model
예제 #8
0
def test_length_to_model(description, model):
    assert to_model(description, "length") == model
예제 #9
0
def test_location_to_model(description, model):
    assert to_model(description, "location") == model
예제 #10
0
def test_ambiguities(description, start_rule, model):
    assert to_model(description, start_rule) == model