コード例 #1
0
ファイル: staging_test.py プロジェクト: arv/noms-old
	def test_DirPathFails(self):
		f = tempfile.NamedTemporaryFile(dir=self.tempdir)
		try:
			staging._dirPath(f.name)
		except ValueError:
			pass
コード例 #2
0
ファイル: staging_test.py プロジェクト: techscientist/noms
 def test_DirPathFails(self):
     f = tempfile.NamedTemporaryFile(dir=self.tempdir)
     try:
         staging._dirPath(f.name)
     except ValueError:
         pass
コード例 #3
0
ファイル: staging_test.py プロジェクト: arv/noms-old
	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
ファイル: staging_test.py プロジェクト: techscientist/noms
 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)