def METHOD_NAME(self):
    """
    Invalid input: [null, null] is no use at all as a daterange and probably a client-side
    error, we should not accept it as correct input
    """
    # Create a DatetimeRangeField instance with some params
    daterange = DatetimeRangeField(required=False)
    # We need at least one datetime: the field raises an error
    with self.assertRaises(ValidationError) as context:
        daterange.clean("[null, null]")
    self.assertEqual(
        context.exception.message, "A valid datetimerange needs at least 1 datetime"
    )