def METHOD_NAME(self):
    models = [SubModel(name=123), SubModel(name=456)]
    model = Model(models=models)
    assert set(model.models) == set(models)
    with pytest.raises(AttributeError):
        model.models = None