test_linchpin_module_os_hot_stack.py 文件源码

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

项目:linchpin 作者: CentOS-PaaS-SIG 项目源码 文件源码
def test_module_dir_params(self):
        """
        tests module with dir params
        """
        dir_name = tempfile.mkdtemp()
        invalid_params = {"stack_name": "testname",
                          "state": "present",
                          "template": dir_name}
        self.options["module_args"] = json.dumps(invalid_params)
        results = run_module(self.options)
        msg = "Recursive directory not supported"
        output = results['failed'] and msg in results["msg"]
        assert_equal(output, True)
        os.removedirs(dir_name)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号