def METHOD_NAME(self):
    """
    Invalid input: an empty array does not satisfy the "required" condition
    """
    # Create a DatetimeRangeField instance with some params
    daterange = DatetimeRangeField(required=True)
    # The field raises an error, an empty array is the same as no value
    with self.assertRaises(ValidationError) as context:
        daterange.clean("[]")
    self.assertEqual(context.exception.message, "Empty datetimerange is invalid")