summaryrefslogtreecommitdiff
path: root/tests/test_streamtester.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2010-10-07 09:22:27 -0400
committerLance Stout <lancestout@gmail.com>2010-10-07 09:22:27 -0400
commit75a051556f2cf65f75534102a7fe57a52571494a (patch)
tree7b0205c55b16bde132eb9d7443bb9c56f1dde5da /tests/test_streamtester.py
parent78141fe5f3d3e8267b6969690b93dd7aba41cf65 (diff)
downloadslixmpp-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_streamtester.py')
-rw-r--r--tests/test_streamtester.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/test_streamtester.py b/tests/test_streamtester.py
index 8a4f82dd..9bc9de67 100644
--- a/tests/test_streamtester.py
+++ b/tests/test_streamtester.py
@@ -8,24 +8,24 @@ class TestStreamTester(SleekTest):
"""
def tearDown(self):
- self.streamClose()
+ self.stream_close()
def testClientEcho(self):
"""Test that we can interact with a ClientXMPP instance."""
- self.streamStart(mode='client')
+ self.stream_start(mode='client')
def echo(msg):
msg.reply('Thanks for sending: %(body)s' % msg).send()
self.xmpp.add_event_handler('message', echo)
- self.streamRecv("""
+ self.stream_recv("""
<message to="tester@localhost" from="user@localhost">
<body>Hi!</body>
</message>
""")
- self.streamSendMessage("""
+ self.stream_send_message("""
<message to="user@localhost">
<body>Thanks for sending: Hi!</body>
</message>
@@ -33,20 +33,20 @@ class TestStreamTester(SleekTest):
def testComponentEcho(self):
"""Test that we can interact with a ComponentXMPP instance."""
- self.streamStart(mode='component')
+ self.stream_start(mode='component')
def echo(msg):
msg.reply('Thanks for sending: %(body)s' % msg).send()
self.xmpp.add_event_handler('message', echo)
- self.streamRecv("""
+ self.stream_recv("""
<message to="tester.localhost" from="user@localhost">
<body>Hi!</body>
</message>
""")
- self.streamSendMessage("""
+ self.stream_send_message("""
<message to="user@localhost" from="tester.localhost">
<body>Thanks for sending: Hi!</body>
</message>
@@ -54,7 +54,7 @@ class TestStreamTester(SleekTest):
def testSendStreamHeader(self):
"""Test that we can check a sent stream header."""
- self.streamStart(mode='client', skip=False)
+ self.stream_start(mode='client', skip=False)
self.streamSendHeader(sto='localhost')
suite = unittest.TestLoader().loadTestsFromTestCase(TestStreamTester)