From 29097c8817fefe3ca8c5639a7908ef044bf6690e Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Fri, 20 Sep 2013 16:03:06 +0100 Subject: [PATCH 07/10] groups-12792 test: remove unused function --- tests/twisted/roster/groups-12791.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/tests/twisted/roster/groups-12791.py b/tests/twisted/roster/groups-12791.py index 5f80b05..16be3f7 100644 --- a/tests/twisted/roster/groups-12791.py +++ b/tests/twisted/roster/groups-12791.py @@ -10,18 +10,6 @@ from servicetest import assertLength import constants as cs import ns -def _expect_group_channel(q, bus, conn, name, contacts): - event = q.expect('dbus-signal', signal='NewChannel') - path, type, handle_type, handle, suppress_handler = event.args - assert type == cs.CHANNEL_TYPE_CONTACT_LIST, type - assert handle_type == cs.HT_GROUP, handle_type - inspected = conn.InspectHandles(handle_type, [handle])[0] - assert inspected == name, (inspected, name) - chan = bus.get_object(conn.bus_name, path) - group_iface = dbus.Interface(chan, cs.CHANNEL_IFACE_GROUP) - inspected = conn.InspectHandles(cs.HT_CONTACT, group_iface.GetMembers()) - assert inspected == contacts, (inspected, contacts) - def test(q, bus, conn, stream): event = q.expect('stream-iq', query_ns=ns.ROSTER) event.stanza['type'] = 'result' -- 1.8.4.rc3