diff options
author | Lance Stout <lancestout@gmail.com> | 2010-10-07 09:22:27 -0400 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2010-10-07 09:22:27 -0400 |
commit | 75a051556f2cf65f75534102a7fe57a52571494a (patch) | |
tree | 7b0205c55b16bde132eb9d7443bb9c56f1dde5da /tests/test_iqstanzas.py | |
parent | 78141fe5f3d3e8267b6969690b93dd7aba41cf65 (diff) | |
download | slixmpp-75a051556f2cf65f75534102a7fe57a52571494a.tar.gz slixmpp-75a051556f2cf65f75534102a7fe57a52571494a.tar.bz2 slixmpp-75a051556f2cf65f75534102a7fe57a52571494a.tar.xz slixmpp-75a051556f2cf65f75534102a7fe57a52571494a.zip |
Changed SleekTest to use underscored names.
Diffstat (limited to 'tests/test_iqstanzas.py')
-rw-r--r-- | tests/test_iqstanzas.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/test_iqstanzas.py b/tests/test_iqstanzas.py index 2dabc5e9..197bc001 100644 --- a/tests/test_iqstanzas.py +++ b/tests/test_iqstanzas.py @@ -6,12 +6,12 @@ class TestIqStanzas(SleekTest): def tearDown(self): """Shutdown the XML stream after testing.""" - self.streamClose() + self.stream_close() def testSetup(self): """Test initializing default Iq values.""" iq = self.Iq() - self.checkIq(iq, """ + self.check_iq(iq, """ <iq id="0" /> """) @@ -19,7 +19,7 @@ class TestIqStanzas(SleekTest): """Test setting Iq stanza payload.""" iq = self.Iq() iq.setPayload(ET.Element('{test}tester')) - self.checkIq(iq, """ + self.check_iq(iq, """ <iq id="0"> <tester xmlns="test" /> </iq> @@ -28,8 +28,8 @@ class TestIqStanzas(SleekTest): def testUnhandled(self): """Test behavior for Iq.unhandled.""" - self.streamStart() - self.streamRecv(""" + self.stream_start() + self.stream_recv(""" <iq id="test" type="get"> <query xmlns="test" /> </iq> @@ -40,7 +40,7 @@ class TestIqStanzas(SleekTest): iq['error']['condition'] = 'feature-not-implemented' iq['error']['text'] = 'No handlers registered for this request.' - self.streamSendIq(iq, """ + self.stream_send_iq(iq, """ <iq id="test" type="error"> <error type="cancel"> <feature-not-implemented xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" /> @@ -56,14 +56,14 @@ class TestIqStanzas(SleekTest): iq = self.Iq() iq['query'] = 'query_ns' - self.checkIq(iq, """ + self.check_iq(iq, """ <iq id="0"> <query xmlns="query_ns" /> </iq> """) iq['query'] = 'query_ns2' - self.checkIq(iq, """ + self.check_iq(iq, """ <iq id="0"> <query xmlns="query_ns2" /> </iq> @@ -72,7 +72,7 @@ class TestIqStanzas(SleekTest): self.failUnless(iq['query'] == 'query_ns2', "Query namespace doesn't match") del iq['query'] - self.checkIq(iq, """ + self.check_iq(iq, """ <iq id="0" /> """) @@ -83,7 +83,7 @@ class TestIqStanzas(SleekTest): iq['type'] = 'get' iq.reply() - self.checkIq(iq, """ + self.check_iq(iq, """ <iq id="0" type="result" /> """) |