def test_ProcessProxy_cwd_specified_withspaces(self): wd = "my tmp relative dir with spaces" testsupport.mkdir(wd) p = process.ProcessProxy(['printcwd'], cwd=wd) output = p.stdout.read() pattern = re.compile("CWD is '(.*?)'") match = pattern.search(output) self.failUnless(match, "Could not find '%s' in 'printcwd' output: "\ "output=%r" % (pattern.pattern, output)) self.failUnless(match.group(1) == os.path.abspath(wd), "%r != %r" % (match.group(1), os.path.abspath(wd))) testsupport.rmtree(wd)
def tearDown(self): testsupport.rmtree('tmp')
def tearDown(self): testsupport.rmtree(gTmpDir)
def tearDown(self): testsupport.rmtree(self.tmpdir)