Example #1
0
 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)
Example #2
0
 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)
Example #3
0
 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)
Example #4
0
 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)