Unit test: programlistingco.004

1    def _check_arg(self, arg):
        if ":" in arg:       
            pos = arg.index(":")
            name = arg[0:pos]
5            value = arg[(pos + 1):]
            if name in ("-x", "-y", "-r", "-init"):
                raise JavaClassRunnerException(
                    f"The {arg} option cannot be specified")
            if name == "-catalog":
10                self.catalogs.append(value)
                return
            elif name == "-xsl":
                self.stylesheet = arg
        self._app_args.append(arg)

The first line.

The second line.