示例#1
0
	def test_DirPathFails(self):
		f = tempfile.NamedTemporaryFile(dir=self.tempdir)
		try:
			staging._dirPath(f.name)
		except ValueError:
			pass
示例#2
0
 def test_DirPathFails(self):
     f = tempfile.NamedTemporaryFile(dir=self.tempdir)
     try:
         staging._dirPath(f.name)
     except ValueError:
         pass
示例#3
0
	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)
示例#4
0
 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)