def test_scriptsPerDir(self): dirName, scripts = self.createTempScripts() sNames = [script.name for script in scripts] hooksNames = hooks._scriptsPerDir(dirName) hooksNames.sort() self.assertEqual(sNames, hooksNames) self.destroyTempScripts(scripts, dirName)
def test_scriptsPerDir(self): with self.tempScripts() as (dirName, scripts): sNames = [script.name for script in scripts] hooksNames = hooks._scriptsPerDir(dirName) hooksNames.sort() self.assertEqual(sNames, hooksNames)