def METHOD_NAME(tarinfo):
    self.assertTrue(tarinfo.issym())
    self.assertThat(file_to_link, Equals(tarinfo.name))
    self.assertThat(
        file_to_tar,
        Equals(
            os.path.normpath(
                os.path.join(os.path.dirname(file_to_tar), tarinfo.linkname)
            )
        ),
    )
    return tarinfo