summaryrefslogtreecommitdiff
path: root/tests/twisted/account-manager/account-basics.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/twisted/account-manager/account-basics.py')
-rw-r--r--tests/twisted/account-manager/account-basics.py39
1 files changed, 1 insertions, 38 deletions
diff --git a/tests/twisted/account-manager/account-basics.py b/tests/twisted/account-manager/account-basics.py
index 18b35cb2..4e643cc9 100644
--- a/tests/twisted/account-manager/account-basics.py
+++ b/tests/twisted/account-manager/account-basics.py
@@ -46,7 +46,7 @@ def test(q, bus, mc):
params = dbus.Dictionary({"account": "someguy@example.com",
"password": "secrecy"}, signature='sv')
- (cm_name_ref, account) = create_fakecm_account(q, bus, mc, params)
+ (simulated_cm, account) = create_fakecm_account(q, bus, mc, params)
account_path = account.__dbus_object_path__
@@ -83,7 +83,6 @@ def test(q, bus, mc):
interfaces = properties.get('Interfaces')
assert cs.ACCOUNT_IFACE_AVATAR in interfaces, interfaces
- assert cs.ACCOUNT_IFACE_NOKIA_CONDITIONS in interfaces, interfaces
# sanity check
for k in properties:
@@ -174,32 +173,6 @@ def test(q, bus, mc):
)
assert account_props.Get(cs.ACCOUNT, 'Nickname') == 'Joe Bloggs'
- call_async(q, account_props, 'Set', cs.ACCOUNT_IFACE_NOKIA_CONDITIONS,
- 'Condition',
- dbus.Dictionary({':foo': 'bar'}, signature='ss'))
- # there's no change notification for the Condition
- q.expect_many(
- EventPattern('dbus-return', method='Set'),
- EventPattern('dbus-signal',
- interface=cs.TEST_DBUS_ACCOUNT_PLUGIN_IFACE,
- signal='DeferringSetAttribute',
- args=[account_path, 'condition-:foo', 'bar']),
- EventPattern('dbus-signal',
- interface=cs.TEST_DBUS_ACCOUNT_PLUGIN_IFACE,
- signal='CommittingOne',
- args=[account_path]),
- EventPattern('dbus-method-call',
- interface=cs.TEST_DBUS_ACCOUNT_SERVICE_IFACE,
- method='UpdateAttributes',
- args=[account_path[len(cs.ACCOUNT_PATH_PREFIX):],
- {'condition-:foo': 'bar'},
- {'condition-:foo': 0}, # flags
- []],
- ),
- )
- assert account_props.Get(cs.ACCOUNT_IFACE_NOKIA_CONDITIONS,
- 'Condition') == {':foo': 'bar'}
-
assertEquals(dbus.Array(signature='o'),
account_props.Get(cs.ACCOUNT, 'Supersedes'))
call_async(q, account_props, 'Set', cs.ACCOUNT, 'Supersedes',
@@ -271,16 +244,6 @@ def test(q, bus, mc):
else:
raise AssertionError('Setting %s with wrong type should fail' % p)
- for p in ('Condition',):
- try:
- account_props.Set(cs.ACCOUNT_IFACE_NOKIA_CONDITIONS, p,
- badly_typed)
- except dbus.DBusException, e:
- assert e.get_dbus_name() == cs.INVALID_ARGUMENT, \
- (p, e.get_dbus_name())
- else:
- raise AssertionError('Setting %s with wrong type should fail' % p)
-
# Make sure MC hasn't crashed yet, and make sure some properties are what
# we expect them to be