[Telepathy-commits] [telepathy-gabble/master] Use actual dbus-python API to call GetHandleOwners in test-muc-ownership

Simon McVittie simon.mcvittie at collabora.co.uk
Tue Aug 19 10:53:00 PDT 2008


20080526155846-53eee-c94f241b295b8e783d64aa534a7fbbaa786b9074.gz
---
 tests/twisted/muc/test-muc-ownership.py |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/tests/twisted/muc/test-muc-ownership.py b/tests/twisted/muc/test-muc-ownership.py
index e82e7d6..2179347 100644
--- a/tests/twisted/muc/test-muc-ownership.py
+++ b/tests/twisted/muc/test-muc-ownership.py
@@ -120,9 +120,8 @@ def test(q, bus, conn, stream):
 
     event = q.expect('dbus-return', method='RequestChannel')
     # Check that GetHandleOwners works.
-    # FIXME: using non-API!
-    bus = conn._bus
-    chan = bus.get_object(conn._named_service, event.value[0])
+    bus = dbus.SessionBus()
+    chan = bus.get_object(conn.bus_name, event.value[0])
     group = dbus.Interface(chan,
         'org.freedesktop.Telepathy.Channel.Interface.Group')
     assert group.GetHandleOwners([5, 7]) == [6, 8]
-- 
1.5.6.3




More information about the Telepathy-commits mailing list