def test_unmount_share(self, mock_execute): remotefs.unmount_share( mock.sentinel.mount_path, mock.sentinel.export_path) mock_execute.assert_any_call('umount', mock.sentinel.mount_path, run_as_root=True, attempts=3, delay_on_retry=True)