

@override_settings(USE_TZ=False, TIME_ZONE='America/Chicago')
@pytest.mark.django_db
def test_datetime_fields_with_current_timezone_conversion_without_timezone_support():
    tm = TestCurrentDatetimeModel.objects.create(datetime_field=datetime(2000, 1, 1, 12, 0, 0))
    assert (not tm.is_dirty())
    chicago_timezone = pytz.timezone('America/Chicago')
    tm.datetime_field = chicago_timezone.localize(datetime(2000, 1, 1, 6, 0, 0), is_dst=None)
    assert (not tm.is_dirty())

dataset/ETHPy150Open romgar/django-dirtyfields/tests/test_timezone_aware_fields.py test_datetime_fields_with_current_timezone_conversion_without_timezone_support/original