[Telepathy-commits] [telepathy-gabble/master] catch expected event in BytestreamIBB.open_bytestream

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Fri Feb 27 04:20:21 PST 2009


---
 tests/twisted/bytestream.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/tests/twisted/bytestream.py b/tests/twisted/bytestream.py
index 8841423..a0966cf 100644
--- a/tests/twisted/bytestream.py
+++ b/tests/twisted/bytestream.py
@@ -334,6 +334,9 @@ class BytestreamIBB(Bytestream):
         # open IBB bytestream
         send_ibb_open(self.stream, self.initiator, self.target, self.stream_id, 4096)
 
+        if expected is not None:
+            return self.q.expect_many(expected)[0]
+
     def send_data(self, data):
         if self.initiated:
             from_ = self.initiator
-- 
1.5.6.5




More information about the telepathy-commits mailing list