def _testExternal(self, moduleName, pyFiles):
        dirPath = self._createTempDir()
        pycFiles = set(pyFile + 'c' for pyFile in pyFiles)
        for relPath in pyFiles:
            path = os.path.join(dirPath, relPath)
            mkdir_p(os.path.dirname(path))
            with open(path, 'w') as f:
                f.write('pass\n')
        sys.path.append(dirPath)
        try:
            userScript = importlib.import_module(moduleName)
            try:
                self._test(userScript.__name__, expectedContents=pycFiles)
            finally:
                del userScript
                del sys.modules[moduleName]
            self.assertFalse(sys.modules in moduleName)
        finally:
            sys.path.remove(dirPath)
dataset/ETHPy150Open BD2KGenomics/toil/src/toil/test/src/resourceTest.py/ResourceTest._testExternal/swapped operands of `in`