def test_DirPathFails(self): f = tempfile.NamedTemporaryFile(dir=self.tempdir) try: staging._dirPath(f.name) except ValueError: pass
def test_DirPath(self): linkName = os.path.join(self.tempdir, 'link') os.symlink(self.nested, linkName) norm = staging._dirPath(linkName) self.assertEqual(self.nested, norm)