def test_getfilehash_filenotfound(self): self.assertEqual( collect.getfilehash([self.file_1, self.file_2]), collect.getfilehash([self.file_1, "/i/dont/exist", self.file_2]))
def test_getfilehash_onefile(self): h = collect.getfilehash([self.file_1]) self.assertEqual(h, "6f8db599de986fab7a21625b7916589c")
def test_getfilehash_twofiles(self): h = collect.getfilehash([self.file_1, self.file_2]) self.assertEqual(h, "a8e1b2b743037b1ec17b5d4b49369872")
def test_getfilehash_nofile(self): h = collect.getfilehash([]) self.assertEqual(h, "d41d8cd98f00b204e9800998ecf8427e")
def test_getfilehash_filenotfound(self): self.assertEqual( collect.getfilehash([self.file_1, self.file_2]), collect.getfilehash([self.file_1, "/i/dont/exist", self.file_2]) )