예제 #1
0
 def test_get_dirpath(self):
     tempdir = tempfile.mkdtemp()
     try:
         config = Configuration(properties={'somepkg.home': tempdir})
         self.assertEqual(tempdir, config.get_dirpath('somepkg.home'))
     finally:
         os.rmdir(tempdir)
예제 #2
0
파일: config.py 프로젝트: hefloryd/bitten
 def test_get_dirpath(self):
     tempdir = tempfile.mkdtemp()
     try:
         config = Configuration(properties={'somepkg.home': tempdir})
         self.assertEqual(tempdir, config.get_dirpath('somepkg.home'))
     finally:
         os.rmdir(tempdir)
예제 #3
0
 def test_get_dirpath_non_existant(self):
     tempdir = tempfile.mkdtemp()
     os.rmdir(tempdir)
     config = Configuration(properties={'somepkg.home': tempdir})
     self.assertEqual(None, config.get_dirpath('somepkg.home'))
예제 #4
0
파일: config.py 프로젝트: hefloryd/bitten
 def test_get_dirpath_non_existant(self):
     tempdir = tempfile.mkdtemp()
     os.rmdir(tempdir)
     config = Configuration(properties={'somepkg.home': tempdir})
     self.assertEqual(None, config.get_dirpath('somepkg.home'))