def test_fromParentElementBothLegacyFirst(self):
        xml = parseXml(u"""
            <message>
              <x xmlns="jabber:x:delay" stamp="20010910T23:08:25"/>
              <delay xmlns="urn:xmpp:delay" stamp="2002-09-10T23:08:25Z"/>
            </message>
        """)
        stanza = DelayStanza.fromElement(xml)
        self.assertNotIdentical(None, stanza.delay)
        self.assertEqual(2002, stanza.delay.stamp.year)
The XEP-0203 format is used over earlier legacy XEP-0091 format.
dataset/ETHPy150Open ralphm/wokkel/wokkel/test/test_delay.py/DelayMixinTest.test_fromParentElementBothLegacyFirst