@mock.patch('flaskage.scaffold.prompt_yes_no', return_value=True)
    def test_policy_prompt_yes_symlink(self, mock_prompt_yes_no):
        os.mkdir(self.build_dir)
        os.symlink('saywhat', os.path.join(self.build_dir, 'symlinka.txt'))
        self.build_scaffold(
            'test-template-2', overwrite_target_root=True,
            existing_policy=Scaffold.EXISTING_PROMPT
        )
        assert self.exists('symlinka.txt', type='link')
        assert (
            os.readlink(os.path.join(self.build_dir, 'symlinka.txt')) ==
            'filea.txt'
        )
        assert self.logged('Creating and overwriting symlink')
dataset/ETHPy150Open fgimian/flaskage/tests/test_scaffold.py/TestScaffold.test_policy_prompt_yes_symlink/original