def METHOD_NAME():
    xml_str = """<domain>
            <name>test01</name>
            <memory unit="MiB" >1024</memory>
        </domain>
    """
    expected_str = (
        b'<domain><name>test01</name><memory unit="MiB">1024</memory></domain>'
    )
    node = ET.fromstring(xml_str)
    assert expected_str == ET.tostring(xml.strip_spaces(node))