[Telepathy-commits] [telepathy-gabble/master] add create_si_offer method on the Bytestream object

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Fri Feb 27 03:18:31 PST 2009


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

diff --git a/tests/twisted/bytestream.py b/tests/twisted/bytestream.py
index d55af46..8841423 100644
--- a/tests/twisted/bytestream.py
+++ b/tests/twisted/bytestream.py
@@ -39,8 +39,15 @@ class Bytestream(object):
     def wait_bytestream_closed(self):
         raise NotImplemented
 
+    def create_si_offer(self, profile):
+        assert self.initiated
+        return create_si_offer(self.stream,
+            self.initiator, self.target, self.stream_id, profile,
+            [self.get_ns()])
+
 ##### XEP-0095: Stream Initiation #####
 
+# FIXME: remove once all tests use the method
 def create_si_offer(stream, from_, to, sid, profile, bytestreams):
     iq = IQ(stream, 'set')
     iq['to'] = to
-- 
1.5.6.5




More information about the telepathy-commits mailing list