test_check_swarm.py 文件源码

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

项目:check_docker 作者: timdaman 项目源码 文件源码
def test_socketfile_failure_unwriteable(self):
        self.fs.CreateFile('/tmp/unwritable', contents='', st_mode=(stat.S_IFSOCK | 0o000))
        args = ('--swarm', '--connection', '/tmp/unwritable')
        result = check_swarm.process_args(args=args)
        self.assertTrue(check_swarm.socketfile_permissions_failure(parsed_args=result))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号