def expandCommand(self, command):
        # subprocess.check_call doesn't expand globs by default, unless
        # shell=True is passed, which is a security hazzard.
        # This gets around that limitation by implementing some shell features
        # which should be enough for our purposes.  See:
        # https://docs.python.org/2/library/subprocess.html
        # #frequently-used-arguments
        if command not in '*':
            return command
        splits = shlex.split(command)
        expandedSplits = []
        for split in splits:
            if '*' in split:
                files = glob.glob(split)
                expandedSplits.extend(files)
            else:
                expandedSplits.append(split)
        return ' '.join(expandedSplits)
dataset/ETHPy150Open ga4gh/schemas/scripts/run_tests.py/TravisSimulator.expandCommand/swapped operands of `not in`