def _assert_updates_have_happened(self, result, partial_update_test_case):
        """
        Verifies that document updates have been correctly applied.
        
        Args:
            result (dict): The document retrieved after update operation
            partial_update_test_case (dict): The update operation that was applied
            
        Raises:
            AssertionError: If any field doesn't match the expected updated value
        """
        self.logger.debug(f"Verifying updates for document {partial_update_test_case.get('_id')}")
        
        for field, expected_value in partial_update_test_case.items():
            if field == "_id":
                continue
                
            # Handle dictionary fields
            if isinstance(expected_value, dict):
                self.logger.debug(f"Checking dictionary field: {field}")
                # For dictionary fields, we need to check each key separately
                for key, value in expected_value.items():
                    nested_field = f"{field}.{key}"
                    if result.get(nested_field) != value:
                        self.fail(f"Nested dictionary field {nested_field} does not match expected value. "
                                  f"Got: {result.get(nested_field)}, Expected: {value}")
            # Handle regular fields
            else:
                self.logger.debug(f"Checking regular field: {field}")
                if result.get(field) != expected_value:
                    self.fail(f"Field {field} does not match expected value. "
                              f"Got: {result.get(field)}, Expected: {expected_value}")
                    
        self.logger.debug(f"All updates verified successfully for document {partial_update_test_case.get('_id')}")

        Verifies that document updates have been correctly applied.
        
        Args:
            result (dict): The document retrieved after update operation
            partial_update_test_case (dict): The update operation that was applied
            
        Raises:
            AssertionError: If any field doesn't match the expected updated value
        
tests/compatibility_tests/update_documents/test_update_documents_unstructured.py