def METHOD_NAME(self):
    """
    :py:`get_pathinfo` returns a :py:`PathInfo` when given a symlink.
    """
    dest = FilePath(self.mktemp())
    dest.setContent(b"content")
    path = FilePath(self.mktemp())
    dest.linkTo(path)
    path_info = get_pathinfo(path)
    self.assertThat(
        path_info,
        MatchesStructure.byEquality(
            is_dir=False,
            is_file=False,
            is_link=True,
            exists=True,
            state=None,
        ),
    )