Example #1
0
 def test_getScriptInfo(self):
     sName, md5 = self.createScript()
     info = hooks._getScriptInfo(sName)
     os.unlink(sName)
     self.assertEqual({'md5': md5}, info)
Example #2
0
 def test_getScriptInfo(self):
     sName, md5 = self.createScript()
     info = hooks._getScriptInfo(sName)
     os.unlink(sName)
     self.assertEqual({'md5': md5}, info)
Example #3
0
 def test_getNEScriptInfo(self):
     path = '/tmp/nonExistent'
     info = hooks._getScriptInfo(path)
     self.assertEqual({'md5': ''}, info)
Example #4
0
 def test_getNEScriptInfo(self):
     path = '/tmp/nonExistent'
     info = hooks._getScriptInfo(path)
     self.assertEqual({'md5': ''}, info)