summaryrefslogtreecommitdiff
path: root/tests/twisted/dispatcher/create-no-preferred-handler.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/twisted/dispatcher/create-no-preferred-handler.py')
-rw-r--r--tests/twisted/dispatcher/create-no-preferred-handler.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/twisted/dispatcher/create-no-preferred-handler.py b/tests/twisted/dispatcher/create-no-preferred-handler.py
index 954d95f7..ad017e35 100644
--- a/tests/twisted/dispatcher/create-no-preferred-handler.py
+++ b/tests/twisted/dispatcher/create-no-preferred-handler.py
@@ -25,7 +25,7 @@ import dbus
import dbus.service
from servicetest import EventPattern, tp_name_prefix, tp_path_prefix, \
- call_async
+ call_async, assertEquals
from mctest import exec_test, SimulatedConnection, SimulatedClient, \
create_fakecm_account, enable_fakecm_account, SimulatedChannel, \
expect_client_setup
@@ -152,7 +152,7 @@ def test_channel_creation(q, bus, account, client, conn, ensure):
assert e.args[2] == channel.object_path, channel.object_path
assert e.args[3] == channel_immutable, channel_immutable
assert e.args[4] == '/', e.args # no dispatch operation
- assert e.args[5] == [request_path], e.args
+ assertEquals({ request_path: request_props }, e.args[5])
# Observer says "OK, go"
q.dbus_return(e.message, signature='')
@@ -166,9 +166,9 @@ def test_channel_creation(q, bus, account, client, conn, ensure):
assert e.args[1] == conn.object_path, e.args
assert e.args[2] == channel.object_path, channels
assert e.args[3] == channel_immutable, channels
- assert e.args[4] == [request_path], e.args
+ assertEquals({ request_path: request_props }, e.args[4])
assert e.args[5] == user_action_time
- assert isinstance(e.args[6], dict)
+ assertEquals({}, e.args[6])
assert len(e.args) == 7
# Handler accepts the Channels