summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2013-09-17 15:23:05 +0200
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2013-09-18 12:16:34 +0200
commitcc57a8a5138386ba7658d46dd7f0b46e2533c7c1 (patch)
treeaa47cb288479d04382378937014f55c590276784 /tests
parentc4f0fadc905734ac1a3a0cef62eb7352f26360fe (diff)
downloadtelepathy-haze-cc57a8a5138386ba7658d46dd7f0b46e2533c7c1.tar.gz
protocol: fix 'ConnectionInterfaces'
Return the set of interfaces actually supported for this specific protocol rather than claiming to support everything. https://bugs.freedesktop.org/show_bug.cgi?id=69466
Diffstat (limited to 'tests')
-rw-r--r--tests/twisted/cm/protocols.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/twisted/cm/protocols.py b/tests/twisted/cm/protocols.py
index 4dc3f19..d296710 100644
--- a/tests/twisted/cm/protocols.py
+++ b/tests/twisted/cm/protocols.py
@@ -94,6 +94,10 @@ def test(q, bus, conn, stream):
protocol_iface.IdentifyAccount({
'account': 'smcv',
'server': 'irc.debian.org'}))
+
+ assertDoesNotContain(cs.CONN_IFACE_AVATARS, flat_props['ConnectionInterfaces'])
+ assertDoesNotContain(cs.CONN_IFACE_CONTACT_BLOCKING, flat_props['ConnectionInterfaces'])
+ assertDoesNotContain(cs.CONN_IFACE_MAIL_NOTIFICATION + '.DRAFT', flat_props['ConnectionInterfaces'])
elif name == 'myspace':
assertEquals('x-myspace', flat_props['VCardField'])
assertEquals('im-myspace', flat_props['Icon'])
@@ -139,6 +143,10 @@ def test(q, bus, conn, stream):
'embrace-and-extend': r'WORKGROUP\Bill',
'password': 'letmein'})
q.expect('dbus-error', name=cs.INVALID_ARGUMENT)
+
+ assertContains(cs.CONN_IFACE_AVATARS, flat_props['ConnectionInterfaces'])
+ assertContains(cs.CONN_IFACE_CONTACT_BLOCKING, flat_props['ConnectionInterfaces'])
+ assertContains(cs.CONN_IFACE_MAIL_NOTIFICATION + '.DRAFT', flat_props['ConnectionInterfaces'])
elif name == 'qq':
assertEquals('x-qq', flat_props['VCardField'])
assertEquals('im-qq', flat_props['Icon'])