def test_group_init(setup_teardown_folder):
group = Group(setup_teardown_folder[2], pathlib.PurePosixPath(""), "test_object", io_mode=None)
assert group.root_directory == setup_teardown_folder[2]
assert group.object_name == "test_object"
assert group.parent_path == pathlib.PurePosixPath("")
assert group.io_mode is None
assert group.relative_path == pathlib.PurePosixPath("test_object")
assert group.name == "/test_object"
# New groups can be created via .create_group method
评论列表
文章目录