コード例 #1
0
ファイル: test_core.py プロジェクト: sdvillal/castra
 def test_safe_mkdir_with_existing(self):
     # an existing path should not raise an exception
     _safe_mkdir(self.path)
コード例 #2
0
ファイル: test_core.py プロジェクト: sdvillal/castra
 def test_safe_mkdir_with_new(self):
     path = os.path.join(self.path, 'db')
     _safe_mkdir(path)
     nt.assert_true(os.path.exists(path))
     nt.assert_true(os.path.isdir(path))