def testStrictOptionalParam(self):
        argv = ['conary', '--strict', '--', '--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', '--strict=', 'one' ]
        argSet, otherArgs = options.processArgs(self.argDef, self.cfgMap, self.cfg, self.usage, argv=argv)
        assert(otherArgs==['conary', 'one'])
        assert(argSet['strict'] is True)

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