summaryrefslogtreecommitdiff
path: root/tests/twisted/account-manager/req-conn-fails.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/twisted/account-manager/req-conn-fails.py')
-rw-r--r--tests/twisted/account-manager/req-conn-fails.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/twisted/account-manager/req-conn-fails.py b/tests/twisted/account-manager/req-conn-fails.py
index bc3f01a2..b9f05cba 100644
--- a/tests/twisted/account-manager/req-conn-fails.py
+++ b/tests/twisted/account-manager/req-conn-fails.py
@@ -31,13 +31,13 @@ def test(q, bus, mc):
{"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.Properties.Set(cs.ACCOUNT, 'Enabled', True)
# Set online presence
presence = dbus.Struct(
- (dbus.UInt32(cs.PRESENCE_TYPE_BUSY), 'busy', 'Fixing MC bugs'),
+ (dbus.UInt32(cs.PRESENCE_BUSY), 'busy', 'Fixing MC bugs'),
signature='uss')
account.Properties.Set(cs.ACCOUNT, 'RequestedPresence', presence)
@@ -56,7 +56,7 @@ def test(q, bus, mc):
changed, = e.args
assertEquals('/', changed['Connection'])
assertEquals(cs.CONN_STATUS_DISCONNECTED, changed['ConnectionStatus'])
- assertEquals(cs.CONN_STATUS_REASON_NONE, changed['ConnectionStatusReason'])
+ assertEquals(cs.CSR_NONE_SPECIFIED, changed['ConnectionStatusReason'])
assertEquals(cs.NOT_IMPLEMENTED, changed['ConnectionError'])
if __name__ == '__main__':