def METHOD_NAME(self):
    from xml.etree.ElementTree import TreeBuilder, tostring
    from sqlalchemy.orm.util import class_mapper
    from c2cgeoportal_geoportal.lib.xsd import XSDGenerator
    gen = XSDGenerator(include_foreign_keys=True)
    mapper = class_mapper(self.cls)
    tb = TreeBuilder()
    p = mapper.attrs["readonly"]
    gen.add_column_property_xsd(tb, p)
    e = tb.close()
    self.assertEqual(
        '<xsd:element name="readonly" minOccurs="0" nillable="true" type="xsd:string">'
        "<xsd:annotation>"
        "<xsd:appinfo>"
        '<readonly value="true" />'
        "</xsd:appinfo>"
        "</xsd:annotation>"
        "</xsd:element>",
        tostring(e).decode("utf-8"),
    )