[telepathy-gabble/telepathy-gabble-0.8] test-avatar-async.py: Test for the D-Bus signal AvatarUpdated after conflict resolution

Alban Crequy alban.crequy at collabora.co.uk
Thu Oct 1 11:41:27 PDT 2009


---
 tests/twisted/vcard/test-avatar-async.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/tests/twisted/vcard/test-avatar-async.py b/tests/twisted/vcard/test-avatar-async.py
index 8d30acc..1cddaf3 100644
--- a/tests/twisted/vcard/test-avatar-async.py
+++ b/tests/twisted/vcard/test-avatar-async.py
@@ -154,5 +154,9 @@ def test(q, bus, conn, stream):
     photo.addElement('BINVAL', content=base64.b64encode('\o/'))
     stream.send(iq)
 
+    event = q.expect('dbus-signal', signal='AvatarUpdated')
+    assertEquals(self_handle, event.args[0])
+    assertEquals(hashlib.sha1('\o/').hexdigest(), event.args[1])
+
 if __name__ == '__main__':
     exec_test(test)
-- 
1.5.6.5




More information about the telepathy-commits mailing list