

@requires_tz_support
def test_localized_model_form(self):
    form = EventLocalizedModelForm(instance=Event(dt=datetime.datetime(2011, 9, 1, 13, 20, 30, tzinfo=EAT)))
    with timezone.override(ICT):
        self.assertIn('2011-09-01 17:20:30', str(form))

dataset/ETHPy150Open django/django/tests/timezones/tests.py NewFormsTests.test_localized_model_form/original