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) )
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))