コード例 #1
0
ファイル: iq.py プロジェクト: DanyPlay/pyxmpp2
 def test_iq_make_error_response(self):
     iq = Iq(ElementTree.XML(IQ1))
     iq5 = iq.make_error_response(u"bad-request")
     self.check_iq5(iq5)
     xml = iq5.as_xml()
     self.check_iq5( Iq(xml) )
コード例 #2
0
ファイル: iq.py プロジェクト: zeeying/pyxmpp2
 def test_iq_make_error_response(self):
     iq = Iq(ElementTree.XML(IQ1))
     iq5 = iq.make_error_response(u"bad-request")
     self.check_iq5(iq5)
     xml = iq5.as_xml()
     self.check_iq5(Iq(xml))