def test_removeWithSymlink(self):
        """
        For a path which is a symbolic link, L{FilePath.remove} just deletes
        the link, not the target.
        """
        link = self.path.child(b"sub1.link")
        # setUp creates the sub1 child
        self.symlink(self.path.child(b"sub1").path, link.path)
        link.remove()
        self.assertFalse(link.exists())
        self.assertTrue(self.path.child(b"sub1").exists())

        For a path which is a symbolic link, L{FilePath.remove} just deletes
        the link, not the target.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/test/test_paths.py