def setUp(self): super(IOUtilsTestCase, self).setUp() self._setup_lib_mocks() self._ioutils = ioutils.IOUtils() self._mock_run = self._ioutils._win32_utils.run_and_check_output self._run_args = dict(kernel32_lib_func=True, failure_exc=exceptions.Win32IOException, eventlet_nonblocking_mode=False) self.addCleanup(mock.patch.stopall)
def __init__(self, pipe_name, input_queue=None, output_queue=None, connect_event=None, log_file=None): self._pipe_name = pipe_name self._input_queue = input_queue self._output_queue = output_queue self._log_file_path = log_file self._connect_event = connect_event self._stopped = threading.Event() self._workers = [] self._pipe_handle = None self._ioutils = ioutils.IOUtils() self._setup_io_structures()
def __init__(self): self._win32_utils = win32utils.Win32Utils() self._acl_utils = _acl_utils.ACLUtils() self._io_utils = ioutils.IOUtils()