@skipIf(sys.platform.startswith('win'), "Windows uses non-standard time zone names")
    def test_tz_template_context_processor(self):
        tpl = Template("{{ TIME_ZONE }}")
        context = Context()
        self.assertEqual(tpl.render(context), "")
        request_context = RequestContext(HttpRequest(), processors=[context_processors.tz])
        self.assertEqual(tpl.render(request_context), "Africa/Nairobi" if pytz else "EAT")
Test the django.template.context_processors.tz template context processor.
dataset/ETHPy150Open django/django/tests/timezones/tests.py/TemplateTests.test_tz_template_context_processor