def METHOD_NAME(self, command, wait=False):
    # This is only able to simulate blocking calls.
    assert wait is True
    assert len(self._fake_execute_data) > 0
    # Required for the correct operation of the base class.
    self.log = None
    self.exec_num += 1
    data = self._fake_execute_data.popleft()
    self.fake_file("%s.%d" % (self.info_basename, self.exec_num),
                   data["log"])
    if data["stdout"] is not None:
        assert self.stdout_file is not None
        self.fake_file(self.stdout_file, data["stdout"])
    if data["stderr"] is not None:
        assert self.stderr_file is not None
        self.fake_file(self.stderr_file, data["stderr"])
    return data["success"]