def METHOD_NAME(self):
    class FooWithError(CCIModel):
        bar: int = None
    class DocumentWithError(CCIModel):
        __root__: FooWithError
    s = StringIO("{bar: 'blah'}")
    s.name = "some_filename"
    with pytest.raises(ValidationError) as e:
        DocumentWithError.parse_from_yaml(s)
    assert "some_filename" in str(e.value)