def test_toElementLegacy(self):
        delay = Delay(stamp=datetime(2002, 9, 10, 23, 8, 25,
                                  tzinfo=dateutil.tz.tzutc()),
                      sender=JID(u'user@example.org'))
        element = delay.toElement(legacy=True)

        self.assertEqual(u'jabber:x:delay', element.uri)
        self.assertEqual(u'x', element.name)
        self.assertEqual(u'20020910T23:08:25', element.getAttribute('stamp'))
        self.assertEqual(u'user@example.org', element.getAttribute('from'))
The legacy format uses C{CCYYMMDDThh:mm:ss} in the old namespace.
dataset/ETHPy150Open ralphm/wokkel/wokkel/test/test_delay.py/DelayTest.test_toElementLegacy