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)
评论列表
文章目录