def assert_subcommand_parsing_raises_error(self, commands, error_expected):
self.subcommand.parse()<EOL>self.assertRaises(<EOL>error_expected,<EOL>self.parser.parse_args, commands<EOL>)<EOL>
This method provides a way to assert subcommand parsing.