'Tarfile with symlink to path outside directory.'

def _symlink_tar(self):

    outsidep = (self.unsafe_common_dir / 'unsafe_file.txt')
    symlinkp = (self.unsafe_common_dir / 'symlink.txt')
    symlink_tar = (self.unsafe_common_dir / 'symlink.tar.gz')
    outsidep.symlink(symlinkp)
    with tarfile.open(symlink_tar, 'w:gz') as tar:
        tar.add(symlinkp)
    return symlink_tar
