From cf40c1951f4f0f26090226fb4969ca147341a031 Mon Sep 17 00:00:00 2001 From: mike Date: Fri, 02 Oct 2009 22:24:56 +0000 Subject: LP 439980 : Refactored the XMLSerializer to support complex components; Corrected specs for the addons properties and constructor parameters names; Moved all existing actions and events to components (except a few left in code for testing purposes) --- (limited to 'tests/filterstests.py') diff --git a/tests/filterstests.py b/tests/filterstests.py index 3e79bcc..c45f924 100644 --- a/tests/filterstests.py +++ b/tests/filterstests.py @@ -26,7 +26,7 @@ import time import gobject import gtk -from sugar.tutorius.filters import EventFilter, TimerEvent, GtkWidgetTypeFilter +from sugar.tutorius.filters import EventFilter from sugar.tutorius import addon from gtkutilstests import SignalCatcher @@ -79,7 +79,7 @@ class TestTimerEvent(unittest.TestCase): ctx = gobject.MainContext() main = gobject.MainLoop(ctx) - e = TimerEvent("Next",1) #1 second should be enough :s + e = addon.create('TimerEvent', "Next", 2) # 2 seconds should be enough :s s = SignalCatcher() e.install_handlers(s.callback) @@ -122,7 +122,7 @@ class TestTimerEvent(unittest.TestCase): ctx = gobject.MainContext() main = gobject.MainLoop(ctx) - e = TimerEvent("Next",1) #1 second should be enough :s + e = addon.create('TimerEvent', "Next", 2) # 2 seconds should be enough :s s = SignalCatcher() e.install_handlers(s.callback) -- cgit v0.9.1