def METHOD_NAME(self):
    field = DateTimeInfinityField()
    result_min = field.get_db_prep_value(dt.min, connection)
    assert result_min == u'-infinity'
    result_max = field.get_db_prep_value(dt.max, connection)
    assert result_max == u'infinity'