def test_11__terminate__terminated(self): try: p = subprocess.Popen("sleep 10", shell=True) p.poll() self.assertNotEquals(SH._terminate(p), 0) except OSError: pass # It looks that test failes in docker.
def test_10__terminate__not_terminated(self): p = subprocess.Popen("true", shell=True) p.wait() self.assertEquals(SH._terminate(p), 0)