def METHOD_NAME(
    self, request, attr, expected_type, expected_val, model_name
):
    model = request.getfixturevalue(model_name)
    # Ensure that boolean attrs have not changed
    assert isinstance(model._model_data.attrs[attr], expected_type)
    if expected_val is None:
        assert model._model_data.attrs[attr] is None
    else:
        assert model._model_data.attrs[attr] == expected_val