summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-10-26 15:50:31 +0200
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-10-26 16:21:42 +0200
commita8f305d39ee09748ac258ce577dd9738278f9561 (patch)
tree4be458a1fa538d414f6481ac05970ca78fcd1a92 /tests
parente1973c15669a6043cd474cb48b89baafc4bb0d45 (diff)
Advertise ContactBlocking if supported
https://bugs.freedesktop.org/show_bug.cgi?id=42281
Diffstat (limited to 'tests')
-rw-r--r--tests/twisted/constants.py1
-rw-r--r--tests/twisted/roster/test-google-roster.py3
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/twisted/constants.py b/tests/twisted/constants.py
index e9381cd5e..bbb10caa7 100644
--- a/tests/twisted/constants.py
+++ b/tests/twisted/constants.py
@@ -137,6 +137,7 @@ CONN_IFACE_CONTACT_LIST = CONN + '.Interface.ContactList'
CONN_IFACE_CONTACT_GROUPS = CONN + '.Interface.ContactGroups'
CONN_IFACE_CLIENT_TYPES = CONN + '.Interface.ClientTypes'
CONN_IFACE_POWER_SAVING = CONN + '.Interface.PowerSaving'
+CONN_IFACE_CONTACT_BLOCKING = CONN + '.Interface.ContactBlocking'
ATTR_CONTACT_CAPABILITIES = CONN_IFACE_CONTACT_CAPS + '/capabilities'
diff --git a/tests/twisted/roster/test-google-roster.py b/tests/twisted/roster/test-google-roster.py
index 630e3c314..d6c559898 100644
--- a/tests/twisted/roster/test-google-roster.py
+++ b/tests/twisted/roster/test-google-roster.py
@@ -295,6 +295,9 @@ def test_deny_simple(q, bus, conn, stream, stored, deny):
EventPattern('dbus-return', method='RemoveMembers'),
)
+ assertContains(cs.CONN_IFACE_CONTACT_BLOCKING,
+ conn.Properties.Get(cs.CONN, "Interfaces"))
+
# Our server sends roster pushes in response to our unsubscribe and
# unsubscribed commands.
stream.send(make_set_roster_iq(stream, 'test@localhost/Resource', contact,