test_main.py 文件源码

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

项目:aws-ec2rescue-linux 作者: awslabs 项目源码 文件源码
def test_main_list(self):
        """Test that the list subcommand returns True when complete and outputs the expected number of characters."""
        with contextlib.redirect_stdout(self.output):
            self.assertTrue(self.ec2rl.list())
        self.assertTrue(self.output.getvalue().startswith("Here is a list of available modules that apply to the curr"))
        self.assertTrue(self.output.getvalue().endswith("=MODULEa ... MODULEx] [--only-domains=DOMAINa ... DOMAINx]\n"))
        self.assertEqual(len(self.output.getvalue()), 14533)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号