mama_cas/tests/utils.py
def parse(s):
    """
    Parse an XML tree from the given string, removing all
    of the included namespace strings.
    """
    ns = re.compile(r'^{.*?}')
    et = etree.fromstring(s)
    for elem in et.iter():
        elem.tag = ns.sub('', elem.tag)
    return et

    Parse an XML tree from the given string, removing all
    of the included namespace strings.
    
Parse an XML tree from the given string, removing all
of the included namespace strings.
Parse an XML tree from the given string removing all of the included namespace strings .
def parse(s):
    ns = re.compile(r'^{.*?}')
    et = etree.fromstring(s)
    for elem in et.iter():
        elem.tag = ns.sub('', elem.tag)
    return et
def parse ( s ) : ns = re . compile ( r'^{.*?}' ) et = etree . fromstring ( s ) for elem in et . iter ( ) : elem . tag = ns . sub ( '' , elem . tag ) return et
Parse an XML tree from the given string, removing all
of the included namespace strings.
Parse an XML tree from the given string removing all of the included namespace strings .
"""
    Parse an XML tree from the given string, removing all
    of the included namespace strings.
    """
s