[Telepathy-commits] [telepathy-gabble/master] test-caps-cache.py: Check that caps in the cache are persistent
Alban Crequy
alban.crequy at collabora.co.uk
Fri Dec 5 09:42:29 PST 2008
---
tests/twisted/test-caps-cache.py | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/tests/twisted/test-caps-cache.py b/tests/twisted/test-caps-cache.py
index 6e9f6f4..07d13f5 100644
--- a/tests/twisted/test-caps-cache.py
+++ b/tests/twisted/test-caps-cache.py
@@ -149,6 +149,7 @@ def _test_with_hash(q, bus, conn, stream, contact, contact_handle, client, disco
# we can now do audio calls
event = q.expect('dbus-signal', signal='CapabilitiesChanged')
+ assert conn.Capabilities.GetCapabilities([contact_handle]) != basic_caps
def test(q, bus, conn, stream):
conn.Connect()
@@ -169,11 +170,15 @@ def test(q, bus, conn, stream):
# we have 5 different contacts that confirm
_test_without_hash(q, bus, conn, stream, 'bob6 at foo.com/Foo', 7L, client,
False)
+ _test_without_hash(q, bus, conn, stream, 'bob7 at foo.com/Foo', 8L, client,
+ False)
- _test_with_hash(q, bus, conn, stream, 'bilbo1 at foo.com/Foo', 8L, client,
+ _test_with_hash(q, bus, conn, stream, 'bilbo1 at foo.com/Foo', 9L, client,
True)
# 1 contact is enough with hash
- _test_with_hash(q, bus, conn, stream, 'bilbo2 at foo.com/Foo', 9L, client,
+ _test_with_hash(q, bus, conn, stream, 'bilbo2 at foo.com/Foo', 10L, client,
+ False)
+ _test_with_hash(q, bus, conn, stream, 'bilbo3 at foo.com/Foo', 11L, client,
False)
conn.Disconnect()
--
1.5.6.5
More information about the Telepathy-commits
mailing list