def METHOD_NAME(
    mock_root_fs_interface: MagicMock, mock_partition_manager_valid_switch: MagicMock
):
    """Test helper functions get called as expected in decomp_and_write"""
    updater = OT3UpdateActions(
        root_FS_intf=mock_root_fs_interface,
        part_mngr=mock_partition_manager_valid_switch,
    )
    mock_root_fs_interface.write_update = mock.Mock(return_value=(True, ""))
    updater.decomp_and_write("test_path", lambda x: x(2))
    mock_partition_manager_valid_switch.find_unused_partition.assert_called()
    mock_root_fs_interface.write_update.assert_called()