def serialize_for_reading(element):
 xml = etree.tostring(element, encoding='unicode', pretty_print=True)
 return XmlString(xml)

def serialize_for_reading ( element ) : xml = etree . tostring ( element , encoding = 'unicode' , pretty_print = True ) return XmlString ( xml )
serialize *element* to human-readable xml suitable for tests .