示例#1
0
文件: rules.py 项目: maerli/aulas
def add_directory(args):
    Directory.create(**args)
示例#2
0
 def setUp(self):
     self.path = SystemTest.get_testing_directory() / "arbitrary_directory"
     Directory.create(self.path)
示例#3
0
 def test_create(self):
     self.assert_directory_does_not_exist(self.path)
     Directory.create(self.path)
     self.assert_directory_exists(self.path)
示例#4
0
 def test_remove_nested_directory(self):
     Directory.create(self.path / "nested")
     Directory.remove(self.path)
     self.assert_directory_does_not_exist(self.path)
示例#5
0
文件: api.py 项目: maerli/aulas
 def add(self, name):
     Directory.create(parentId=1, name=name, type='$')
     return "ok"