def test_path_split(self):
     for path_test in self.path_break_values:
         file_hash = FileHash(path_test[0])
         hash_path = file_hash.hash_path(path_break=path_test[1])
         self.assertEqual(hash_path, path_test[2])
 def test_direct_assignment(self):
     for test_hash in self.test_sha256_hashes:
         file_hash = FileHash(test_hash[1])
         direct_hash = file_hash.hash()
         self.assertEqual(direct_hash, file_hash.update(test_hash[0]).hash())
 def test_str_representation(self):
     for test_hash in self.test_sha256_hashes:
         file_hash = FileHash(test_hash[1])
         self.assertEqual(str(file_hash), file_hash.hash())
 def test_hashing_algorithms(self):
     
     file_hash = FileHash()
     for test_hash in self.test_sha256_hashes:
         self.assertEqual(file_hash.update(test_hash[0]).hash(),
                                           test_hash[1])