コード例 #1
0
 def test_type_of_directory(self):
     with self.assertRaises(ValueError):
         get_directory_path(sys.executable)
コード例 #2
0
 def test_existence_of_directory(self):
     with self.assertRaises(ValueError):
         get_directory_path('/not/a/dir')
コード例 #3
0
 def test_converts_relative_paths(self):
     self.assertTrue(get_directory_path('.').samefile(os.getcwd()))
コード例 #4
0
 def test_takes_absolute_paths(self):
     self.assertTrue(get_directory_path(os.getcwd()).samefile(os.getcwd()))
コード例 #5
0
ファイル: example.py プロジェクト: torbjoernk/pfasst_py
 def rundir(self, value):
     self._rundir = get_directory_path(value)
コード例 #6
0
ファイル: example.py プロジェクト: torbjoernk/pfasst_py
 def directory(self, value):
     self._directory = get_directory_path(value)