def test_accept_valid_timezones(environment, valid_tz) -> None:
    """Verify that valid timezones are accepted."""
    template = environment.from_string(f"{{% now '{valid_tz}', '%Y-%m' %}}")

    assert template.render() == '2015-12'
Verify that valid timezones are accepted.
tests/test_time_extension.py