def METHOD_NAME():
    """
    Test checking of model where meta-model is provided from the grammar file.
    """
    model_file = os.path.join(this_folder,
                              'projects', 'types_dsl', 'tests',
                              'models', 'types.etype')
    metamodel_file = os.path.join(this_folder,
                                  'projects', 'types_dsl', 'types_dsl',
                                  'Types.tx')
    runner = CliRunner()
    result = runner.invoke(textx, ['check',
                                   '--grammar', metamodel_file,
                                   model_file])
    assert result.exit_code == 0
    assert 'types.etype: OK.' in result.output