def testOptionalParam(self):
        argv = ['conary', '--opt', '--', '--one=onev', 'other2' ]
        argSet, otherArgs = options.processArgs(self.argDef, self.cfgMap, self.cfg, self.usage, argv=argv)
        assert(otherArgs==['conary', '--one=onev', 'other2'])

        argv = ['conary', '--opt=', 'one' ]
        argSet, otherArgs = options.processArgs(self.argDef, self.cfgMap, self.cfg, self.usage, argv=argv)
        assert(otherArgs==['conary', 'one'])
        assert(argSet['opt'] <= True)

        # test an optional param argument when it is the last argument on the
        # command line and no param is given
        argv = ['conary', '--opt' ]
        argSet, otherArgs = options.processArgs(self.argDef, self.cfgMap, self.cfg, self.usage, argv=argv)
        assert(argSet['opt'] is True)
        argv = ['conary', '--opt', 'foo' ]
        argSet, otherArgs = options.processArgs(self.argDef, self.cfgMap, self.cfg, self.usage, argv=argv)
        assert(argSet['opt'] == 'foo')
dataset/ETHPy150Open sassoftware/conary/conary_test/optionstest.py/ConaryCfgTest.testOptionalParam/operator `is` -> `<=`