summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorWill Thompson <will.thompson@collabora.co.uk>2011-11-03 10:28:55 +0000
committerWill Thompson <will.thompson@collabora.co.uk>2011-11-03 10:28:55 +0000
commitf2e91a1e1305ef78a49dbcc81f2b94a938afd5e1 (patch)
treed8307878d6173a22dc913092e638a3b5797f428b /tests
parent33ec45d180708ec8c0be8309e91a29f313f4d2f3 (diff)
account-manager/presence: modernize
Diffstat (limited to 'tests')
-rwxr-xr-xtests/twisted/account-manager/presence.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/twisted/account-manager/presence.py b/tests/twisted/account-manager/presence.py
index abef3b00..88ea6a00 100755
--- a/tests/twisted/account-manager/presence.py
+++ b/tests/twisted/account-manager/presence.py
@@ -30,8 +30,6 @@ def test(q, bus, mc):
"password": "ionstorm"}, signature='sv')
(cm_name_ref, account) = create_fakecm_account(q, bus, mc, params)
- account_iface = dbus.Interface(account, cs.ACCOUNT)
- account_props = dbus.Interface(account, cs.PROPERTIES_IFACE)
# Go online with a particular presence
presence = dbus.Struct((dbus.UInt32(cs.PRESENCE_TYPE_BUSY), 'busy',
@@ -92,7 +90,7 @@ def test(q, bus, mc):
# Change requested presence after going online
presence = dbus.Struct((dbus.UInt32(cs.PRESENCE_TYPE_AWAY), 'away',
'In Hong Kong'), signature='uss')
- call_async(q, account_props, 'Set', cs.ACCOUNT, 'RequestedPresence',
+ call_async(q, account.Properties, 'Set', cs.ACCOUNT, 'RequestedPresence',
presence)
e, _, _ = q.expect_many(
@@ -121,7 +119,7 @@ def test(q, bus, mc):
presence = dbus.Struct((dbus.UInt32(cs.PRESENCE_TYPE_AWAY), 'away',
'In Hong Kong'), signature='uss')
- call_async(q, account_props, 'Set', cs.ACCOUNT, 'RequestedPresence',
+ call_async(q, account.Properties, 'Set', cs.ACCOUNT, 'RequestedPresence',
presence)
e = q.expect('dbus-method-call',