def METHOD_NAME(relationship):
    with pytest.raises(stix2.exceptions.ImmutableError) as excinfo:
        relationship.relationship_type = "derived-from"
    assert str(excinfo.value) == "Cannot modify 'relationship_type' property in 'Relationship' after creation."