[telepathy-gabble/master] presence.py: use presence type constants

Dafydd Harries dafydd.harries at collabora.co.uk
Wed Sep 23 08:29:13 PDT 2009


---
 tests/twisted/presence/presence.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/tests/twisted/presence/presence.py b/tests/twisted/presence/presence.py
index 2903544..379d8d6 100644
--- a/tests/twisted/presence/presence.py
+++ b/tests/twisted/presence/presence.py
@@ -31,13 +31,14 @@ def test(q, bus, conn, stream):
     stream.send(make_presence('amy at foo.com', show='away', status='At the pub'))
 
     q.expect('dbus-signal', signal='PresencesChanged',
-        args=[{amy_handle: (3, 'away', 'At the pub')}])
+        args=[{amy_handle: (cs.PRESENCE_AWAY, 'away', 'At the pub')}])
 
     stream.send(make_presence(
         'amy at foo.com', show='chat', status='I may have been drinking'))
 
     q.expect('dbus-signal', signal='PresencesChanged',
-        args=[{amy_handle: (2, 'chat', 'I may have been drinking')}])
+        args=[{amy_handle:
+            (cs.PRESENCE_AVAILABLE, 'chat', 'I may have been drinking')}])
 
 if __name__ == '__main__':
     exec_test(test)
-- 
1.5.6.5




More information about the telepathy-commits mailing list