summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorWill Thompson <will.thompson@collabora.co.uk>2011-11-01 13:00:07 +0000
committerWill Thompson <will.thompson@collabora.co.uk>2011-11-01 13:05:47 +0000
commit8e80e5fc190d6dc7654f835bdb0467c035a02fa3 (patch)
treec6a73d929dd26f39f36e311e5a1819b891fd5f9e /tests
parent9a4964631952846d829fc63d8f4f5299e697908a (diff)
Subject: implement ActorHandle property.
Reviewed-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
Diffstat (limited to 'tests')
-rw-r--r--tests/twisted/channels/muc-channel-topic.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/twisted/channels/muc-channel-topic.py b/tests/twisted/channels/muc-channel-topic.py
index 0b7ccb3..3f59146 100644
--- a/tests/twisted/channels/muc-channel-topic.py
+++ b/tests/twisted/channels/muc-channel-topic.py
@@ -68,6 +68,8 @@ def test(q, bus, conn, stream):
q.expect('dbus-signal', signal='StatusChanged', args=[0, 1])
+ alice_handle, bob_handle = conn.RequestHandles(HT_CONTACT, ['alice', 'bob'])
+
call_async(q, conn.Requests, 'CreateChannel',
{ CHANNEL_TYPE: CHANNEL_TYPE_TEXT,
TARGET_HANDLE_TYPE: HT_ROOM,
@@ -88,6 +90,7 @@ def test(q, bus, conn, stream):
assertEquals('', subject_props['Subject'])
assertEquals(0, subject_props['Timestamp'])
assertEquals('', subject_props['Actor'])
+ assertEquals(0, subject_props['ActorHandle'])
# Before the topic arrives from the server, check that our API works okay.
# FIXME: when we make SetSubject return asynchronously, this will need
@@ -106,6 +109,7 @@ def test(q, bus, conn, stream):
expect_subject_props_changed(q,
{ 'Timestamp': 1307802600,
'Actor': 'bob',
+ 'ActorHandle': bob_handle,
}, exact_timestamp=True)
# Another user changes the topic.
@@ -114,6 +118,7 @@ def test(q, bus, conn, stream):
expect_subject_props_changed(q,
{ 'Subject': 'I am as high as a kite',
'Actor': 'alice',
+ 'ActorHandle': alice_handle,
'Timestamp': 1234,
})