diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2015-04-14 19:19:46 +0200 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2015-04-19 20:48:02 +0200 |
commit | 4415d3be1ab10717e1bd3c3fde68b4c04932adda (patch) | |
tree | dfa38554eecb81a7c7bbd27ce790b96a72e9ecf6 /tests/test_stream_xep_0047.py | |
parent | 058c5307877c4e0d8cf8cbef1b83bbd187de1bc4 (diff) | |
download | slixmpp-4415d3be1ab10717e1bd3c3fde68b4c04932adda.tar.gz slixmpp-4415d3be1ab10717e1bd3c3fde68b4c04932adda.tar.bz2 slixmpp-4415d3be1ab10717e1bd3c3fde68b4c04932adda.tar.xz slixmpp-4415d3be1ab10717e1bd3c3fde68b4c04932adda.zip |
XEP-0047: use coroutines for send(), sendall() and the new sendfile().
Diffstat (limited to 'tests/test_stream_xep_0047.py')
-rw-r--r-- | tests/test_stream_xep_0047.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_stream_xep_0047.py b/tests/test_stream_xep_0047.py index 2cc43823..ecba2445 100644 --- a/tests/test_stream_xep_0047.py +++ b/tests/test_stream_xep_0047.py @@ -1,3 +1,4 @@ +import asyncio import threading import time @@ -78,6 +79,7 @@ class TestInBandByteStreams(SlixTest): self.assertEqual(events, set(['ibb_stream_start', 'callback'])) + @asyncio.coroutine def testSendData(self): """Test sending data over an in-band bytestream.""" @@ -115,7 +117,7 @@ class TestInBandByteStreams(SlixTest): # Test sending data out - stream.send("Testing") + yield from stream.send("Testing") self.send(""" <iq type="set" id="2" |