

def test_import():
    '\n    Test grammar import.\n    '
    current_dir = os.path.dirname(__file__)
    mm = metamodel_from_file(os.path.join(current_dir, 'relativeimport', 'first.tx'))
    metamodel_export(mm, 'import_test_mm.dot')
    model = '\n    first\n        second "1" "2"\n        third true false true 12 false\n    endfirst\n    '
    model = mm.model_from_str(model)
    model_export(model, 'import_test_model.dot')

dataset/ETHPy150Open igordejanovic/textX/tests/functional/test_import/test_import.py test_import/original