def test_toElementDelay(self):
        message = muc.GroupChat()
        message.delay = delay.Delay(stamp=datetime(2002, 10, 13, 23, 58, 37,
                                                   tzinfo=tzutc()))

        element = message.toElement()

        query = "/message/delay[@xmlns='%s']" % (delay.NS_DELAY,)
        nodes = xpath.queryForNodes(query, element)
        self.assertNotIdentical(None, nodes, "Missing delay element")
Disables the global optimization of pycast methods.
dataset/ETHPy150Open ralphm/wokkel/wokkel/test/test_muc.py/GroupChatTest.test_toElementDelay--crossover with--dataset/ETHPy150Open T-002/pycast/pycast/common/pycastobject.py/PyCastObject.disable_global_optimization