def parseArgs(self, argv):
        import getopt
        try:
            options, args = getopt.getopt(argv[1:], 'hHvqxt',
                                          ['help','verbose','quiet','xml','text'])
        except getopt.error, msg:
            self.usageExit(msg)
        for opt, value in options:
            if opt in ('-h','-H','--help'):
                self.usageExit()
            if opt in ('-q','--quiet'):
                self.verbosity = 0
            if opt in ('-v','--verbose'):
                self.verbosity = 2
            if ('-x','--xml') in opt:
                self.xmlReport = True
            if opt in ('-t','--text'):
                self.xmlReport = False
        if os.getenv('PYUNITXMLOUTPUT'):
            self.xmlReport = True
        if len(args) == 0 and self.defaultTest is None:
            self.test = self.testLoader.loadTestsFromModule(self.module)
            return
        if len(args) > 0:
            self.testNames = args
        else:
            print 'Running default test:%s' % self.defaultTest
            self.testNames = (self.defaultTest,)
        self.createTests()
dataset/ETHPy150Open garethr/django-test-extensions/src/test_extensions/testrunners/xmlunit/unittest.py/TestProgram.parseArgs/swapped operands of `in`