'Simulates the execution of the dsmc command.'

def _exec_dsmc_cmd(self, cmd):

    cmd_switch = {'backup': self._cmd_backup, 'restore': self._cmd_restore, 'delete': self._cmd_delete}
    kwargs = self._cmd_to_dict(cmd)
    if ((kwargs['cmd'] != 'dsmc') or (kwargs['type'] not in cmd_switch)):
        raise putils.ProcessExecutionError(exit_code=1, stdout='', stderr='Not    dsmc    command', cmd='    '.join(cmd))
    (out, err, ret) = cmd_switch[kwargs['type']](**kwargs)
    return (out, err, ret)
