def test006():
    class SimpleNamespace(NamespaceModel):
        with_variables(Var("CMD_TARGET", find_ip()))
        cmd_target = Role("cmd-target", host_ref="!{CMD_TARGET}")
    ns = SimpleNamespace()
          
    class SimpleConfig(ConfigModel):
        ping = CommandTask("cmd", "/bin/wibble", chdir=user_home,
                           task_role=SimpleNamespace.cmd_target,
                           repeat_count=1)
    cfg = SimpleConfig()
    ea = AnsibleExecutionAgent(config_model_instance=cfg,
                               namespace_model_instance=ns,
                               no_delay=True)
    try:
        ea.perform_config()
        assert False, "this should have failed"
    except ExecutionException, e:
        assert len(ea.get_aborted_tasks()) == 1
test006 should raise an exception during perform_config() because
dataset/ETHPy150Open haxsaw/actuator/src/tests/ansible_tests.py/test006