test_group.py 文件源码

python
阅读 28 收藏 0 点赞 0 评论 0

项目:exdir 作者: CINPLA 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号