summaryrefslogtreecommitdiff
path: root/test/twisted/account-manager/recover-from-disconnect.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/twisted/account-manager/recover-from-disconnect.py')
-rw-r--r--test/twisted/account-manager/recover-from-disconnect.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/twisted/account-manager/recover-from-disconnect.py b/test/twisted/account-manager/recover-from-disconnect.py
index 3b8cfdaa..f28411e3 100644
--- a/test/twisted/account-manager/recover-from-disconnect.py
+++ b/test/twisted/account-manager/recover-from-disconnect.py
@@ -32,7 +32,8 @@ def test(q, bus, mc):
# Create an account
params = dbus.Dictionary({"account": "someguy@example.com",
- "password": "secrecy"}, signature='sv')
+ "password": "secrecy",
+ "register": True}, signature='sv')
(cm_name_ref, account) = create_fakecm_account(q, bus, mc, params)
account_iface = dbus.Interface(account, cs.ACCOUNT)
@@ -89,8 +90,9 @@ def test(q, bus, mc):
conn.StatusChanged(cs.CONN_STATUS_DISCONNECTED,
cs.CONN_STATUS_REASON_NETWORK_ERROR)
- # MC reconnects
-
+ # MC reconnects. This time, we expect it to have deleted the 'register'
+ # parameter.
+ del params['register']
e = q.expect('dbus-method-call', method='RequestConnection',
args=['fakeprotocol', params],
destination=tp_name_prefix + '.ConnectionManager.fakecm',