diff options
Diffstat (limited to 'tests/test_stanza_iq.py')
-rw-r--r-- | tests/test_stanza_iq.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_stanza_iq.py b/tests/test_stanza_iq.py index 0f5e30b0..0b248da6 100644 --- a/tests/test_stanza_iq.py +++ b/tests/test_stanza_iq.py @@ -1,9 +1,9 @@ import unittest -from sleekxmpp.test import SleekTest -from sleekxmpp.xmlstream.stanzabase import ET +from slixmpp.test import SlixTest +from slixmpp.xmlstream.stanzabase import ET -class TestIqStanzas(SleekTest): +class TestIqStanzas(SlixTest): def tearDown(self): """Shutdown the XML stream after testing.""" @@ -19,7 +19,7 @@ class TestIqStanzas(SleekTest): def testPayload(self): """Test setting Iq stanza payload.""" iq = self.Iq() - iq.setPayload(ET.Element('{test}tester')) + iq.set_payload(ET.Element('{test}tester')) self.check(iq, """ <iq id="0"> <tester xmlns="test" /> @@ -82,7 +82,7 @@ class TestIqStanzas(SleekTest): iq = self.Iq() iq['to'] = 'user@localhost' iq['type'] = 'get' - iq.reply() + iq = iq.reply() self.check(iq, """ <iq id="0" type="result" /> |