def METHOD_NAME():
    filename = "tests/xdsl_opt/empty_program.mlir"
    opt = xDSLOptMain(args=[filename])
    opt.args.target = "wrong"
    with pytest.raises(Exception) as e:
        opt.run()
    assert e.value.args[0] == "Unknown target wrong"