

@requires_pytz
def test_form_with_non_existent_time(self):
    form = EventForm({
        'dt': '2011-03-27 02:30:00',
    })
    with timezone.override(pytz.timezone('Europe/Paris')):
        self.assertTrue(self.is_valid())
        self.assertEqual(form.cleaned_data['dt'], datetime.datetime(2011, 3, 27, 2, 30, 0))

dataset/ETHPy150Open django/django/tests/timezones/tests.py LegacyFormsTests.test_form_with_non_existent_time/VarMisuse@46/76 `form`->`self`