summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2013-10-02 12:32:19 +0200
committerXavier Claessens <xavier.claessens@collabora.co.uk>2013-10-04 11:11:43 -0400
commit41d8fd6ae9040efebc21750f3849a5a34fdeab96 (patch)
tree95b3d6af9fca1f29834e5b044dacbfc0b65ff245
parent5330b920385cb22f681b93173f33e6988e658964 (diff)
test-self-alias: port to new Aliasing1 API
https://bugs.freedesktop.org/show_bug.cgi?id=69964
-rw-r--r--tests/twisted/test-self-alias.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/twisted/test-self-alias.py b/tests/twisted/test-self-alias.py
index a6c22e0..2a39c0c 100644
--- a/tests/twisted/test-self-alias.py
+++ b/tests/twisted/test-self-alias.py
@@ -13,17 +13,16 @@ def test(q, bus, conn, sip_proxy):
self_handle = conn.Get(cs.CONN, 'SelfHandle', dbus_interface=cs.PROPERTIES_IFACE)
- default_alias = conn.Aliasing.GetAliases([self_handle])[self_handle]
+ attrs = conn.Contacts.GetContactAttributes([self_handle], [cs.CONN_IFACE_ALIASING])
+ default_alias = attrs[self_handle][cs.CONN_IFACE_ALIASING + "/alias"]
conn.Aliasing.SetAliases({self_handle: 'foo@bar.baz'})
event = q.expect('dbus-signal', signal='AliasesChanged',
- args=[[(self_handle, u'foo@bar.baz')]])
+ args=[{self_handle: u'foo@bar.baz'}])
handle = conn.get_contact_handle_sync('sip:user@somewhere.com')
- assert cs.CONN_IFACE_ALIASING in \
- conn.Properties.Get(cs.CONN_IFACE_CONTACTS, "ContactAttributeInterfaces")
attrs = conn.Contacts.GetContactAttributes([self_handle, handle],
[cs.CONN_IFACE_ALIASING])
assert cs.CONN_IFACE_ALIASING + "/alias" in attrs[self_handle]