コード例 #1
0
 def test_empty_echo(self):
     p = processes.Process('echo', ['-n'])
     self.assertEqual('', p.read())
     self.assertRaises(processes.DeadProcess, p.read)
コード例 #2
0
 def skip_test_005_run_apachebench(self):
     url = 'http://localhost:12346/'
     # ab is apachebench
     out = processes.Process(find_command('ab'),
                             ['-c','64','-n','1024', '-k', url])
     print out.read()