Exemple #1
0
 def test_auto_stringify_args(self):
     executive = Executive()
     executive.run_command(command_line('echo', 1))
     with executive.popen(command_line('echo', 1),
                          stdout=executive.PIPE) as process:
         process.wait()
         self.assertEqual('echo 1',
                          executive.command_for_printing(['echo', 1]))
 def test_auto_stringify_args(self):
     executive = Executive()
     executive.run_command(command_line('echo', 1))
     executive.popen(command_line('echo', 1), stdout=executive.PIPE).wait()
     self.assertEqual('echo 1', executive.command_for_printing(['echo', 1]))