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