def test_default_attribute_values():
    grammar = """
    First:
        'first' seconds+=Second
        ('A' a=INT)?
        ('B' b=BOOL)?
        ('C' c=STRING)?
        ('D' d=FLOAT)?
        ('E' e+=INT)?
        ('F' f*=INT)?
        ('G' g?=INT)?
    ;

    Second:
        INT|STRING
    ;
    """
    metamodel = metamodel_from_str(grammar)

    model = metamodel.model_from_str("""
            first 45 "foo" 78
    """)
    assert type(model).__name__ == "First"
    assert type(model.seconds) is list
    assert type(model.a) is int
    assert model.a == 0
    assert type(model.b) is bool
    assert model.b is False
    assert type(model.c) is text
    assert model.c == ""
    assert type(model.d) is float
    assert model.d == 0.0
    assert type(model.e) is list
    assert model.e == []
    assert type(model.f) is list
    assert model.f == []
    assert type(model.g) is bool
    assert model.g is False
Images that are not approved should not be returned.
dataset/ETHPy150Open igordejanovic/textX/tests/functional/test_textx_language.py/test_default_attribute_values--crossover with--dataset/ETHPy150Open ofa/connect/open_connect/media/tests/test_models.py/ImagePopularityManagerTest.test_with_user_message_not_approved