def test_fromElementSender(self):
        xml = parseXml(u"""
            <delay xmlns="urn:xmpp:delay" stamp="2002-09-10T23:08:25Z"
                                          from="user@example.org"/>
        """)

        delay = Delay.fromElement(xml)
        self.assertEqual(JID(u'user@example.org'), delay.sender)
Check that user is authorized to work with this tasks type
dataset/ETHPy150Open ralphm/wokkel/wokkel/test/test_delay.py/DelayTest.test_fromElementSender--crossover with--dataset/ETHPy150Open mrgambal/vulyk/vulyk/models/user.py/User.is_eligible_for