def test_skip_identical_symlink(self):
        os.mkdir(self.build_dir)
        os.symlink('filea.txt', os.path.join(self.build_dir, 'symlinka.txt'))
        self.build_scaffold('test-template-2', overwrite_target_root=True)
        assert self.exists('symlinka.txt', type='link')
        assert (
            os.readlink(os.path.join(self.build_dir, 'symlinka.txt')) ==
            'filea.txt'
        )
        assert self.exists('symlinkb.html', type='link')
        assert (
            os.readlink(os.path.join(self.build_dir, 'symlinkb.html')) ==
            'badfile.txt'
        )
        assert self.exists('symlinkc', type='link')
        assert (
            os.readlink(os.path.join(self.build_dir, 'symlinkc')) ==
            'directory1'
        )
        assert self.exists('symlinkd', type='link')
        assert (
            os.readlink(os.path.join(self.build_dir, 'symlinkd')) == 'baddir'
        )
        assert self.logged('Skipping identical symlink')
dataset/ETHPy150Open fgimian/flaskage/tests/test_scaffold.py/TestScaffold.test_skip_identical_symlink/original