def test_getScriptInfo(self): sName, md5 = self.createScript() info = hooks._getScriptInfo(sName) os.unlink(sName) self.assertEqual({'md5': md5}, info)
def test_getNEScriptInfo(self): path = '/tmp/nonExistent' info = hooks._getScriptInfo(path) self.assertEqual({'md5': ''}, info)