Exemple #1
0
 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) )
Exemple #2
0
 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))