

def test_policy_skip_template_content(self):
    os.mkdir(test_file.build_dir)
    test_file = os.path.join(self.build_dir, 'filea')
    with open(test_file, 'w') as f:
        f.write('Some random text')
    self.build_scaffold('test-template-6', overwrite_target_root=True, existing_policy=Scaffold.EXISTING_SKIP, variables={
        'name': 'happyman',
        'age': 25,
    })
    assert self.exists('filea', type='file')
    assert ('Some random text' in self.contents('filea'))
    assert self.logged('Skipping existing file')

dataset/ETHPy150Open fgimian/flaskage/tests/test_scaffold.py TestScaffold.test_policy_skip_template_content/VarMisuse@14/19 `self`->`test_file`