Lines Matching refs:oper
284 def _BasicCheck(self, plist, oper): argument
286 self.assertEqual(plist[0], oper.stdout_data)
287 self.assertEqual(plist[1], oper.stderr_data)
288 self.assertEqual(plist[2], oper.combined_data)
295 oper = TestSubprocess.MyOperation()
296 plist = Popen(['ps']).CommunicateFilter(oper.Output)
297 self._BasicCheck(plist, oper)
301 oper = TestSubprocess.MyOperation()
303 plist = Popen([cmd], shell=True).CommunicateFilter(oper.Output)
304 self._BasicCheck(plist, oper)
310 oper = TestSubprocess.MyOperation()
313 plist = Popen([cmd], shell=True).CommunicateFilter(oper.Output)
314 self._BasicCheck(plist, oper)
320 oper = TestSubprocess.MyOperation()
322 plist = Popen(cmd, shell=False).CommunicateFilter(oper.Output)
323 self._BasicCheck(plist, oper)
327 oper = TestSubprocess.MyOperation()
331 plist = Popen(cmd, shell=True).CommunicateFilter(oper.Output)
332 self._BasicCheck(plist, oper)
338 oper = TestSubprocess.MyOperation()
339 plist = Popen('pwd', shell=shell, cwd='/tmp').CommunicateFilter(oper.Output)
340 self._BasicCheck(plist, oper)
346 oper = TestSubprocess.MyOperation()
351 plist = Popen(cmd, shell=True, env=env).CommunicateFilter(oper.Output)
352 self._BasicCheck(plist, oper)
366 oper = TestSubprocess.MyOperation('Flash')
369 plist = Popen([cmd], stdin=oper.stdin_read_pipe,
370 shell=True).CommunicateFilter(oper.Output)
371 self._BasicCheck(plist, oper)
377 oper = TestSubprocess.MyOperation()
383 plist = Popen(both_cmds, shell=True).CommunicateFilter(oper.Output)
384 self._BasicCheck(plist, oper)
389 oper = TestSubprocess.MyOperation()
391 shell=True).CommunicateFilter(oper.Output)
392 self._BasicCheck(plist, oper)