def test_sh_executes_in_background(self): task = InitTask() task._io = IO() task.exec('ls', background=True)
def test(): task = InitTask() task._io = IO() task.exec('ls', background=True, capture=True)
def test_exec_spawns_process(self): task = InitTask() task._io = IO() self.assertIn('__init__.py', task.exec('ls rkd', capture=True))