<s> import os <EOL> import io <EOL> import pytest <EOL> import freezegun <EOL> from cookiecutter . main import cookiecutter <EOL> @ pytest . yield_fixture ( autouse = True ) <EOL> def freeze ( ) : <EOL> freezer = freezegun . freeze_time ( "<STR_LIT>" ) <EOL> freezer . start ( ) <EOL> yield <EOL> freezer . stop ( ) <EOL> def test_jinja2_time_extension ( tmpdir ) : <EOL> project_dir = cookiecutter ( <EOL> '<STR_LIT>' , <EOL> no_input = True , <EOL> output_dir = str ( tmpdir ) <EOL> ) <EOL> changelog_file = os . path . join ( project_dir , '<STR_LIT>' ) <EOL> assert os . path . isfile ( changelog_file ) <EOL> with io . open ( changelog_file , '<STR_LIT:r>' , encoding = '<STR_LIT:utf-8>' ) as f : <EOL> changelog_lines = f . readlines ( ) <EOL> expected_lines = [ <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT:\n>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT:\n>' , <EOL> '<STR_LIT>' <EOL> ] <EOL> assert expected_lines == changelog_lines </s>
