summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Thompson <will.thompson@collabora.co.uk>2012-11-26 09:01:29 +0000
committerWill Thompson <will.thompson@collabora.co.uk>2012-11-26 09:57:19 +0000
commitc52894a5facb58465bc6933277e16307f978a767 (patch)
treeedee2e88856f312a669d0d75dfea04ee9f5456a2
parent7cdccfed7508e5a915dcd62f8936393e67884b56 (diff)
jingle/payload-types: clean up a bit
-rw-r--r--tests/twisted/jingle/payload-types.py11
1 files changed, 3 insertions, 8 deletions
diff --git a/tests/twisted/jingle/payload-types.py b/tests/twisted/jingle/payload-types.py
index a2b31fbcd..cdc09799c 100644
--- a/tests/twisted/jingle/payload-types.py
+++ b/tests/twisted/jingle/payload-types.py
@@ -5,12 +5,10 @@ Regression test for https://bugs.freedesktop.org/show_bug.cgi?id=18918
import dbus
from gabbletest import exec_test, sync_stream
-from servicetest import make_channel_proxy
+from servicetest import wrap_channel, make_channel_proxy
import jingletest
import constants as cs
-from twisted.words.xish import domish
-
from config import VOIP_ENABLED
if not VOIP_ENABLED:
@@ -38,15 +36,12 @@ def test(q, bus, conn, stream):
path = conn.RequestChannel(
cs.CHANNEL_TYPE_STREAMED_MEDIA, cs.HT_CONTACT, handle, True)
- channel = bus.get_object(conn.bus_name, path)
- signalling_iface = make_channel_proxy(conn, path, 'Channel.Interface.MediaSignalling')
- media_iface = make_channel_proxy(conn, path, 'Channel.Type.StreamedMedia')
- group_iface = make_channel_proxy(conn, path, 'Channel.Interface.Group')
+ channel = wrap_channel(bus.get_object(conn.bus_name, path), 'StreamedMedia')
# Test that codec parameters are correctly sent in <parameter> children of
# <payload-type> rather than as attributes of the latter.
- media_iface.RequestStreams(handle, [cs.MEDIA_STREAM_TYPE_AUDIO])
+ channel.StreamedMedia.RequestStreams(handle, [cs.MEDIA_STREAM_TYPE_AUDIO])
# S-E gets notified about new session handler, and calls Ready on it
e = q.expect('dbus-signal', signal='NewSessionHandler')