summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/twisted/hazetest.py11
-rw-r--r--tests/twisted/roster/groups.py2
-rw-r--r--tests/twisted/roster/publish.py2
-rw-r--r--tests/twisted/roster/subscribe.py2
4 files changed, 3 insertions, 14 deletions
diff --git a/tests/twisted/hazetest.py b/tests/twisted/hazetest.py
index 7df7f3d..e03c58c 100644
--- a/tests/twisted/hazetest.py
+++ b/tests/twisted/hazetest.py
@@ -74,14 +74,3 @@ def exec_test(fun, params=None, protocol=EmptyRosterXmppXmlStream, timeout=None,
exec_test_deferred, fun, params, protocol, timeout, authenticator, num_instances,
do_connect, make_haze_connection, expect_kinda_connected)
reactor.run()
-
-def close_all_groups(q, bus, conn, stream):
- channels = conn.Properties.Get(cs.CONN_IFACE_REQUESTS, 'Channels')
- for path, props in channels:
- if props.get(cs.CHANNEL_TYPE) != cs.CHANNEL_TYPE_CONTACT_LIST:
- continue
- if props.get(cs.TARGET_HANDLE_TYPE) != cs.HT_GROUP:
- continue
- wrap_channel(bus.get_object(conn.bus_name, path),
- cs.CHANNEL_TYPE_CONTACT_LIST).Close()
-
diff --git a/tests/twisted/roster/groups.py b/tests/twisted/roster/groups.py
index 3e2dfee..0ded827 100644
--- a/tests/twisted/roster/groups.py
+++ b/tests/twisted/roster/groups.py
@@ -9,7 +9,7 @@ from twisted.words.xish import domish, xpath
from servicetest import (EventPattern, wrap_channel, assertLength,
assertEquals, call_async, sync_dbus, assertContains, assertSameSets)
-from hazetest import acknowledge_iq, exec_test, sync_stream, close_all_groups
+from hazetest import acknowledge_iq, exec_test, sync_stream
import constants as cs
import ns
diff --git a/tests/twisted/roster/publish.py b/tests/twisted/roster/publish.py
index 3b97cbb..df88ce2 100644
--- a/tests/twisted/roster/publish.py
+++ b/tests/twisted/roster/publish.py
@@ -9,7 +9,7 @@ from twisted.words.xish import domish
from servicetest import (EventPattern, wrap_channel, assertLength,
assertEquals, call_async, sync_dbus, assertSameSets)
-from hazetest import acknowledge_iq, exec_test, sync_stream, close_all_groups
+from hazetest import acknowledge_iq, exec_test, sync_stream
import constants as cs
import ns
diff --git a/tests/twisted/roster/subscribe.py b/tests/twisted/roster/subscribe.py
index b736d0d..b39f86e 100644
--- a/tests/twisted/roster/subscribe.py
+++ b/tests/twisted/roster/subscribe.py
@@ -8,7 +8,7 @@ from twisted.words.xish import domish
from servicetest import (EventPattern, wrap_channel, assertLength,
assertEquals, call_async, sync_dbus)
-from hazetest import acknowledge_iq, exec_test, sync_stream, close_all_groups
+from hazetest import acknowledge_iq, exec_test, sync_stream
import constants as cs
import ns