diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2014-03-21 18:36:12 +0000 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2014-03-27 15:40:40 +0000 |
commit | 3946c981d1f155631294bdeb07ae6aceb9a821f0 (patch) | |
tree | 826ae0eff2d4897dfa2a9e17df770b54e26babd7 | |
parent | 55ded353d5e5e26b66d21898dcecd12311dea04b (diff) |
tests: make sure to specify a D-Bus interface for method calls
GDBus doesn't implement method calls that lack an explicit interface.
This is A Good Thing™.
-rw-r--r-- | tests/twisted/account-requests/cancel.py | 4 | ||||
-rw-r--r-- | tests/twisted/account-requests/create-text.py | 2 | ||||
-rw-r--r-- | tests/twisted/account-requests/delete-account-during-request.py | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/tests/twisted/account-requests/cancel.py b/tests/twisted/account-requests/cancel.py index 2bec7b1d..a4f0cc81 100644 --- a/tests/twisted/account-requests/cancel.py +++ b/tests/twisted/account-requests/cancel.py @@ -82,13 +82,13 @@ def test(q, bus, mc): assert request_props['UserActionTime'] == user_action_time # chat UI connects to signals and calls ChannelRequest.Proceed() - cr.Proceed() + cr.Proceed(dbus_interface=cs.CR) cm_request_call = q.expect('dbus-method-call', interface=cs.CONN_IFACE_REQUESTS, method='CreateChannel', path=conn.object_path, args=[request], handled=False) # Actually, never mind. - cr.Cancel() + cr.Cancel(dbus_interface=cs.CR) # Time passes. A channel is returned. channel_immutable = dbus.Dictionary(request) diff --git a/tests/twisted/account-requests/create-text.py b/tests/twisted/account-requests/create-text.py index f52346e9..c230038b 100644 --- a/tests/twisted/account-requests/create-text.py +++ b/tests/twisted/account-requests/create-text.py @@ -104,7 +104,7 @@ def test_channel_creation(q, bus, account, client, conn, ensure): q.dbus_return(add_request.message, signature='') # chat UI connects to signals and calls ChannelRequest.Proceed() - cr.Proceed() + cr.Proceed(dbus_interface=cs.CR) cm_request_call = q.expect('dbus-method-call', interface=cs.CONN_IFACE_REQUESTS, method=(ensure and 'EnsureChannel' or 'CreateChannel'), diff --git a/tests/twisted/account-requests/delete-account-during-request.py b/tests/twisted/account-requests/delete-account-during-request.py index 2f2a33ce..3e806102 100644 --- a/tests/twisted/account-requests/delete-account-during-request.py +++ b/tests/twisted/account-requests/delete-account-during-request.py @@ -75,7 +75,7 @@ def test(q, bus, mc): # chat UI connects to signals and calls ChannelRequest.Proceed() cr = bus.get_object(cs.CD, request_path) - cr.Proceed() + cr.Proceed(dbus_interface=cs.CR) cm_request_call = q.expect('dbus-method-call', interface=cs.CONN_IFACE_REQUESTS, method='CreateChannel', path=conn.object_path, args=[request], handled=False) |