def METHOD_NAME(
    mock_root_fs_interface: MagicMock,
    mock_partition_manager_valid_switch: MagicMock,
):
    """Test commit_update mounts and resizes rootfs as expected!"""
    updater = OT3UpdateActions(
        root_FS_intf=mock_root_fs_interface,
        part_mngr=mock_partition_manager_valid_switch,
    )
    updater.commit_update()
    mock_partition_manager_valid_switch.mount_fs.assert_called()
    mock_partition_manager_valid_switch.resize_partition.assert_called()