def test_validate_elements_valid():
    """
    When a DictField is given a dict whose values are valid for the value-field, then validate
    should not raise a ValidationError.
    """
    field = DictField(child=CharField(max_length=5))
    try:
        field.to_internal_value({"a": "a", "b": "b", "c": "c"})
    except __HOLE__:
        assert False, "ValidationError was raised"
dataset/ETHPy150Open estebistec/drf-compound-fields/tests/test_dictfield.py/test_validate_elements_valid