Skip to content

Commit

Permalink
meaningful names to call_sync parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
hyades committed Jul 24, 2013
1 parent 53c9a0c commit ef2b4a4
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions python-api/gstswitch/test_connection.py
Expand Up @@ -134,8 +134,17 @@ def __init__(self, method):
self.method = method
self.return_result = self.funs[method]

def call_sync(self, a1, a2, a3, a4, a5, a6, a7, a8, a9):
if a3 == "info.duzy.gst.switch.SwitchControllerInterface":
def call_sync(
self,
bus_name,
object_path,
interface_name,
method_name,
parameters,
reply_type, flags,
timeout_msec,
cancellable):
if interface_name == "info.duzy.gst.switch.SwitchControllerInterface":
return self.return_result
else:
raise GLib.GError('{0}: Test Failed'.format(self.method))
Expand Down Expand Up @@ -310,4 +319,4 @@ def test_mark_tracking():
conn = Connection(default_interface=default_interface)
conn.connection = MockConnection('mark_tracking')
face = [(1, 1, 1, 1), (2, 2, 2, 2)]
assert conn.mark_tracking(face) is None
assert conn.mark_tracking(face) is None

0 comments on commit ef2b4a4

Please sign in to comment.