

def test_localtime_with_time_zone_setting_set_to_none(self):
    tpl = Template('{% load tz %}{{ dt }}')
    ctx = Context({
        'dt': datetime.datetime(2011, 9, 1, 12, 20, 30, tzinfo=EAT),
    })
    with self.settings(TIME_ZONE=None):
        self.assertTrue(tpl.render(ctx).startswith('2011'))

dataset/ETHPy150Open django/django/tests/timezones/tests.py TemplateTests.test_localtime_with_time_zone_setting_set_to_none/original