summaryrefslogtreecommitdiff
path: root/tests/test_streamtester.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_streamtester.py')
-rw-r--r--tests/test_streamtester.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/tests/test_streamtester.py b/tests/test_streamtester.py
index 8512f401..8a4f82dd 100644
--- a/tests/test_streamtester.py
+++ b/tests/test_streamtester.py
@@ -16,15 +16,15 @@ class TestStreamTester(SleekTest):
def echo(msg):
msg.reply('Thanks for sending: %(body)s' % msg).send()
-
+
self.xmpp.add_event_handler('message', echo)
-
+
self.streamRecv("""
<message to="tester@localhost" from="user@localhost">
<body>Hi!</body>
</message>
""")
-
+
self.streamSendMessage("""
<message to="user@localhost">
<body>Thanks for sending: Hi!</body>
@@ -52,4 +52,9 @@ class TestStreamTester(SleekTest):
</message>
""")
+ def testSendStreamHeader(self):
+ """Test that we can check a sent stream header."""
+ self.streamStart(mode='client', skip=False)
+ self.streamSendHeader(sto='localhost')
+
suite = unittest.TestLoader().loadTestsFromTestCase(TestStreamTester)