diff options
author | Will Thompson <will.thompson@collabora.co.uk> | 2011-09-16 10:44:38 +0100 |
---|---|---|
committer | Will Thompson <will.thompson@collabora.co.uk> | 2011-09-21 19:27:13 +0100 |
commit | 6362eedfdc4907592d299bac2fe88cd936b62b94 (patch) | |
tree | f220c86efa72fa017e1ce85d9467d13c62006ab6 /tests | |
parent | 5461261e185cab9784923683720149490107e0a5 (diff) |
mctest: remove references to parameters
This is cargo-culted from CM tests which actually have connection
parameters.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/twisted/mctest.py | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/tests/twisted/mctest.py b/tests/twisted/mctest.py index 417cd4d3..0a1c7d73 100644 --- a/tests/twisted/mctest.py +++ b/tests/twisted/mctest.py @@ -33,13 +33,7 @@ from twisted.internet import reactor import dbus import dbus.service -def make_mc(bus, event_func, params=None): - default_params = { - } - - if params: - default_params.update(params) - +def make_mc(bus, event_func): mc = bus.get_object( cs.tp_name_prefix + '.MissionControl5', cs.tp_path_prefix + '/MissionControl5', @@ -77,8 +71,8 @@ def wait_for_name(queue, bus, name): queue.expect('dbus-signal', signal='NameOwnerChanged', predicate=lambda e: e.args[0] == name and e.args[2]) -def wait_for_mc(queue, bus, params): - mc = make_mc(bus, queue.append, params) +def wait_for_mc(queue, bus): + mc = make_mc(bus, queue.append) wait_for_name(queue, bus, cs.AM) wait_for_name(queue, bus, cs.CD) return mc @@ -101,7 +95,7 @@ def exec_test_deferred (fun, params, protocol=None, timeout=None, if preload_mc: try: - mc = wait_for_mc(queue, bus, params) + mc = wait_for_mc(queue, bus) except Exception, e: import traceback traceback.print_exc() |