diff options
Diffstat (limited to 'tests/filterstests.py')
-rw-r--r-- | tests/filterstests.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/filterstests.py b/tests/filterstests.py index ee6033b..5358605 100644 --- a/tests/filterstests.py +++ b/tests/filterstests.py @@ -69,7 +69,7 @@ class TestTimerEvent(unittest.TestCase): ctx = gobject.MainContext() main = gobject.MainLoop(ctx) - e = addon.create('TimerEvent', 2) # 2 seconds should be enough :s + e = addon.create('TimerEvent', timeout=2) # 2 seconds should be enough :s s = SignalCatcher() e.install_handlers(s.callback) @@ -112,7 +112,7 @@ class TestTimerEvent(unittest.TestCase): ctx = gobject.MainContext() main = gobject.MainLoop(ctx) - e = addon.create('TimerEvent', 2) # 2 seconds should be enough :s + e = addon.create('TimerEvent', timeout=2) # 2 seconds should be enough :s s = SignalCatcher() e.install_handlers(s.callback) @@ -159,7 +159,7 @@ class TestGtkWidgetEventFilter(unittest.TestCase): self.top.add(self.btn1) def test_install(self): - h = addon.create('GtkWidgetEventFilter', "0","whatever") + h = addon.create('GtkWidgetEventFilter', object_id="0", event_name="whatever") try: h.install_handlers(None) @@ -168,7 +168,7 @@ class TestGtkWidgetEventFilter(unittest.TestCase): assert True, "Install should have failed" def test_button_clicks(self): - h = addon.create('GtkWidgetEventFilter', "0.0","clicked") + h = addon.create('GtkWidgetEventFilter', object_id="0.0", event_name="clicked") s = SignalCatcher() h.install_handlers(s.callback, activity=self.top) |