def assert_prints(self, command, message):
out = StringIO()<EOL>with patch("<STR_LIT>", out):<EOL><INDENT>self.cli.onecmd(command)<EOL><DEDENT>self.assertEqual(out.getvalue().strip(), message.strip())<EOL>
Assert that a cli command will print a message to the console