def assert_fast_command_with_icon(self, parent: str, name: str, command: str, icon_path: str) -> None:
        """Asserts that keys for a FastCommand are correctly set.

        For some reasons, the name is no set when using FastCommand,
        while it is set for a ContextCommand.

        :param parent: parent \\shell key
        :param name: name of the key for the command
        :param command: expected command set in \\command
        """
        for k, v in (
            # Checks the key parent\\name
            ("", ""),
            # Checks the key parent\\name\\command
            ("\\command", command),
        ):
            assert self.get_key_value(f"{parent}\\{name}{k}", "") == v

        assert self.get_key_value(f"{parent}\\{name}", "Icon") == icon_path
Asserts that keys for a FastCommand are correctly set.

        For some reasons, the name is no set when using FastCommand,
        while it is set for a ContextCommand.

        :param parent: parent \shell key
        :param name: name of the key for the command
        :param command: expected command set in \command
        
context_menu/pytest_plugin.py