def test_validate_elements_invalid():
    field = ListField(child=CharField(max_length=5))
    with pytest.raises(ValidationError):
        field.to_internal_value(["012345", "012345"])
Merges a single protocol message scalar field into a message.
dataset/ETHPy150Open estebistec/drf-compound-fields/tests/test_listfield.py/test_validate_elements_invalid--crossover with--dataset/ETHPy150Open sklearn-theano/sklearn-theano/sklearn_theano/externals/google/protobuf/text_format.py/_MergeScalarField