def test_safe_mkdir_with_existing(self): # an existing path should not raise an exception _safe_mkdir(self.path)
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))