def test_validate_elements_invalid():
    field = ListField(child=CharField(max_length=5))
    with pytest.raises(ValidationError):
        field.to_internal_value(["012345", "012345"])
When a ListField is given a list containing elements that are invalid for the item-field, then
dataset/ETHPy150Open estebistec/drf-compound-fields/tests/test_listfield.py/test_validate_elements_invalid