def METHOD_NAME(factory):
    """Test simple attribute formatting."""
    a = factory.create(UML.Property)
    a.type = factory.create(UML.Class)
    a.name = "attr"
    a.type.name = "MyClass"
    assert "+ attr: MyClass" == format(a)