How to properly mock the mount point for testing a path splitting function?
I have a Python function split_path_at_mount_point
that takes a path as input and returns the longest contained mount point and the remaining tail of the path. The function uses os.path.ismount
to check if a given path component is a mount point.