summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2013-09-19 13:43:13 +0200
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2013-09-19 13:45:14 +0200
commit0979408634389bb28853820c2f7cfc840f74c026 (patch)
tree3100a2c760936f51fb64bf1b5a4db9bc396f2dec /tests
parent9b8846bbb243134981494377ff683777b0ea5c4c (diff)
downloadtelepathy-salut-0979408634389bb28853820c2f7cfc840f74c026.tar.gz
protocol: implement Presences
https://bugs.freedesktop.org/show_bug.cgi?id=31108
Diffstat (limited to 'tests')
-rw-r--r--tests/twisted/cm/protocol.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/twisted/cm/protocol.py b/tests/twisted/cm/protocol.py
index 05cffc49..51bf6d62 100644
--- a/tests/twisted/cm/protocol.py
+++ b/tests/twisted/cm/protocol.py
@@ -74,5 +74,13 @@ def test(q, bus, conn):
assertContains(cs.PROTOCOL_IFACE_PRESENCES, proto_props['Interfaces'])
+ expected_status = {'available': (cs.PRESENCE_AVAILABLE, True, True),
+ 'dnd' : (cs.PRESENCE_BUSY, True, True),
+ 'away' : (cs.PRESENCE_AWAY, True, True),
+ 'offline' : (cs.PRESENCE_OFFLINE, False, False)}
+
+ presences = proto_prop_iface.Get(cs.PROTOCOL_IFACE_PRESENCES, 'Statuses');
+ assertEquals(expected_status, presences)
+
if __name__ == '__main__':
exec_test(test)