Пример #1
0
 def test_sh_executes_in_background(self):
     task = InitTask()
     task._io = IO()
     task.exec('ls', background=True)
Пример #2
0
 def test():
     task = InitTask()
     task._io = IO()
     task.exec('ls', background=True, capture=True)
Пример #3
0
 def test_exec_spawns_process(self):
     task = InitTask()
     task._io = IO()
     self.assertIn('__init__.py', task.exec('ls rkd', capture=True))