Exemplo n.º 1
0
 def verify_source_file_check_sum(self, source_file, checksum_file):
     file_hash = self.hasher.get_file_hash(source_file)
     return FileUtil.file_contains_hash(checksum_file, file_hash)
Exemplo n.º 2
0
 def test_file_contains_hash(self):
     hex_digest, digest = get_file_hash(self.test_file_1)
     check_sum_file_path = create_checksum_file(self.test_file_1)
     self.assertTrue(FileUtil.file_contains_hash(check_sum_file_path, hex_digest))
Exemplo n.º 3
0
 def test_file_contains_hash(self):
     hex_digest, digest = get_file_hash(self.test_file_1)
     check_sum_file_path = create_checksum_file(self.test_file_1)
     self.assertTrue(
         FileUtil.file_contains_hash(check_sum_file_path, hex_digest))