def create_cli(self, args): parser = cli.create_parser() options = parser.parse_args(args.split(' ')) cli.search(options)
def setUp(self): core.req = Mock() self.parser = cli.create_parser()