def test_skip_identical_file(self):
        os.mkdir(self.build_dir)
        test_file = os.path.join(self.build_dir, 'filec.txt')
        with open(test_file, 'w') as f:
            f.write('Hello there {{{ name }}}\n')
        os.chmod(
            test_file,
            stat.S_IRUSR | stat.S_IWUSR | stat.S_IRGRP | stat.S_IWGRP |
            stat.S_IROTH
        )
        self.build_scaffold(
            'test-template-6', overwrite_target_root=True,
            variables={'name': 'happyman', 'age': 25}
        )
        assert self.exists('filec.txt')
        assert get_permissions(test_file) == 0o664
        assert self.logged('Skipping identical file')
dataset/ETHPy150Open fgimian/flaskage/tests/test_scaffold.py/TestScaffold.test_skip_identical_file/original