def test_validate_elements_valid():
    """
    When a ListField is given a list whose elements are valid for the item-field, then validate
    should not raise a ValidationError.
    """
    field = ListField(child=CharField(max_length=5))
    try:
        field.to_internal_value(["a", "b", "c"])
    except __HOLE__:
        assert False, "ValidationError was raised"
dataset/ETHPy150Open estebistec/drf-compound-fields/tests/test_listfield.py/test_validate_elements_valid