def test_runproc(self): if hasattr(os, 'getcwdb'): currdir = os.getcwdb() else: currdir = os.getcwd() out, err = utils.runproc("pwd") self.assertEqual(err, b"") self.assertEqual(out.strip(), currdir)
def test_runproc(self): currdir = os.getcwd() out, err = utils.runproc("pwd") self.assertEqual(err, "") self.assertEqual(out.strip(), currdir)