def test_fromElementLegacy(self):
        xml = parseXml(u"""
            <x xmlns="jabber:x:delay" stamp="20020910T23:08:25"/>
        """)

        delay = Delay.fromElement(xml)
        self.assertEqual(datetime(2002, 9, 10, 23, 8, 25,
                                  tzinfo=dateutil.tz.tzutc()),
                         delay.stamp)
        self.assertIdentical(None, delay.sender)
For legacy XEP-0091 support, the timestamp is assumed to be in UTC.
dataset/ETHPy150Open ralphm/wokkel/wokkel/test/test_delay.py/DelayTest.test_fromElementLegacy