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