diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2013-09-19 13:43:13 +0200 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2013-09-19 13:45:14 +0200 |
commit | 0979408634389bb28853820c2f7cfc840f74c026 (patch) | |
tree | 3100a2c760936f51fb64bf1b5a4db9bc396f2dec /tests | |
parent | 9b8846bbb243134981494377ff683777b0ea5c4c (diff) | |
download | telepathy-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.py | 8 |
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) |