def test_validate_non_list():
    field = ListField(child=DateField())
    with pytest.raises(ValidationError):
        field.to_internal_value('notAList')
When a ListField is given a non-list value, then validate should raise a ValidationError.
dataset/ETHPy150Open estebistec/drf-compound-fields/tests/test_listfield.py/test_validate_non_list