[Telepathy-commits] [telepathy-gabble/master] tubetestutil: add exec_tube_test
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Wed Feb 25 07:31:43 PST 2009
---
tests/twisted/tubes/tubetestutil.py | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/tests/twisted/tubes/tubetestutil.py b/tests/twisted/tubes/tubetestutil.py
index b5f024d..eca68d9 100644
--- a/tests/twisted/tubes/tubetestutil.py
+++ b/tests/twisted/tubes/tubetestutil.py
@@ -9,7 +9,9 @@ import dbus
from dbus import PROPERTIES_IFACE
from servicetest import unwrap
+from gabbletest import exec_test
from constants import *
+from bytestream import BytestreamIBB, BytestreamS5B
from twisted.internet import reactor
from twisted.internet.protocol import Factory, Protocol
@@ -214,3 +216,13 @@ def set_up_echo(name):
if e.errno != errno.ENOENT:
raise
reactor.listenUNIX(os.getcwd() + '/stream' + name, factory)
+
+def exec_tube_test(test):
+ def test_ibb(q, bus, conn, stream):
+ test(q, bus, conn, stream, BytestreamIBB)
+
+ def test_socks5(q, bus, conn, stream):
+ test(q, bus, conn, stream, BytestreamS5B)
+
+ exec_test(test_ibb)
+ exec_test(test_socks5)
--
1.5.6.5
More information about the telepathy-commits
mailing list