diff options
-rw-r--r-- | tests/twisted/muc/test-muc-invitation.py | 10 | ||||
-rw-r--r-- | tests/twisted/muc/test-muc-ownership.py | 9 |
2 files changed, 10 insertions, 9 deletions
diff --git a/tests/twisted/muc/test-muc-invitation.py b/tests/twisted/muc/test-muc-invitation.py index ea7419aea..6cc8efc44 100644 --- a/tests/twisted/muc/test-muc-invitation.py +++ b/tests/twisted/muc/test-muc-invitation.py @@ -29,22 +29,22 @@ def test(q, bus, conn, stream): text_chan = wrap_channel(bus.get_object(conn.bus_name, path), 'Text') - members = text_chan.Group.GetMembers() - local_pending = text_chan.Group.GetLocalPendingMembers() - remote_pending = text_chan.Group.GetRemotePendingMembers() + members = text_chan.Properties.Get(cs.CHANNEL_IFACE_GROUP, 'Members') + local_pending = text_chan.Properties.Get(cs.CHANNEL_IFACE_GROUP, 'LocalPendingMembers') + remote_pending = text_chan.Properties.Get(cs.CHANNEL_IFACE_GROUP, 'RemotePendingMembers') assert len(members) == 1 assert conn.inspect_contact_sync(members[0]) == 'bob@localhost' bob_handle = members[0] assert len(local_pending) == 1 # FIXME: the username-part-is-nickname assumption - assert conn.inspect_contact_sync(local_pending[0]) == \ + assert conn.inspect_contact_sync(local_pending[0][0]) == \ 'chat@conf.localhost/test' assert len(remote_pending) == 0 room_self_handle = text_chan.Properties.Get(cs.CHANNEL_IFACE_GROUP, "SelfHandle") - assert room_self_handle == local_pending[0] + assert room_self_handle == local_pending[0][0] channel_props = text_chan.Properties.GetAll(cs.CHANNEL) assert channel_props['TargetID'] == 'chat@conf.localhost', channel_props diff --git a/tests/twisted/muc/test-muc-ownership.py b/tests/twisted/muc/test-muc-ownership.py index d5d97b90d..7de9e9b0a 100644 --- a/tests/twisted/muc/test-muc-ownership.py +++ b/tests/twisted/muc/test-muc-ownership.py @@ -1,7 +1,7 @@ """ Test support for the HANDLE_OWNERS_NOT_AVAILABLE group flag, and calling -GetHandleOwners on MUC members. +HandleOwners on MUC members. By default, MUC channels should have the flag set. The flag should be unset when presence is received that includes the MUC JID's owner JID. @@ -83,9 +83,10 @@ def test(q, bus, conn, stream): chan = wrap_channel(bus.get_object(conn.bus_name, event.value[0]), 'Text') - # Exercise GetHandleOwners - assertEquals([che_owner, chris_owner], - chan.Group.GetHandleOwners([che, chris])) + # Exercise HandleOwners + owners = chan.Properties.Get(cs.CHANNEL_IFACE_GROUP, 'HandleOwners') + assertEquals(che_owner, owners[che]) + assertEquals(chris_owner, owners[chris]) # Exercise D-Bus properties all = chan.Properties.GetAll(cs.CHANNEL_IFACE_GROUP) |