[telepathy-gabble/master] Add a helper to run a test on all Jingle dialects
Will Thompson
will.thompson at collabora.co.uk
Thu Mar 26 04:31:16 PDT 2009
---
tests/twisted/jingle/jingletest2.py | 17 ++++++++++++++++-
1 files changed, 16 insertions(+), 1 deletions(-)
diff --git a/tests/twisted/jingle/jingletest2.py b/tests/twisted/jingle/jingletest2.py
index f5d5bdc..7c85dcd 100644
--- a/tests/twisted/jingle/jingletest2.py
+++ b/tests/twisted/jingle/jingletest2.py
@@ -9,7 +9,7 @@
from twisted.words.xish import domish
import random
-from gabbletest import sync_stream
+from gabbletest import sync_stream, exec_test
from servicetest import EventPattern
import dbus
@@ -336,5 +336,20 @@ class JingleTest2:
in enumerate(self.remote_transports) ],
signature='(usuussduss)')
+def test_all_dialects(f):
+ def test015(q, bus, conn, stream):
+ f(JingleProtocol015(), q, bus, conn, stream)
+ def test031(q, bus, conn, stream):
+ f(JingleProtocol031(),q, bus, conn, stream)
+ def testg3(q, bus, conn, stream):
+ f(GtalkProtocol03(), q, bus, conn, stream)
+
+ def testg4(q, bus, conn, stream):
+ f(GtalkProtocol04(), q, bus, conn, stream)
+
+ exec_test(testg3)
+ exec_test(testg4)
+ exec_test(test015)
+ exec_test(test031)
--
1.5.6.5
More information about the telepathy-commits
mailing list