def test_popen(self): from plumbum.cmd import ls p = ls.popen(["-a"]) out, _ = p.communicate() assert p.returncode == 0 assert "test_local.py" in out.decode(local.encoding).splitlines()
def test_popen(self): from plumbum.cmd import ls p = ls.popen(["-a"]) out, _ = p.communicate() self.assertEqual(p.returncode, 0) self.assertTrue("test_local.py" in out.decode(local.encoding).splitlines())