From ffaa84c5c20110ea0461fa2096cb66f71b3e84e6 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Savard Date: Sun, 19 Apr 2009 22:08:17 +0000 Subject: Loading function for XMl in bundler.py --- (limited to 'src') diff --git a/src/sugar/tutorius/bundler.py b/src/sugar/tutorius/bundler.py index 09babc6..9071be8 100644 --- a/src/sugar/tutorius/bundler.py +++ b/src/sugar/tutorius/bundler.py @@ -267,6 +267,7 @@ class XMLSerializer(Serializer): @param properties_elem An XML element reprensenting a list of properties """ + # TODO return [] def _load_xml_event_filters(self, filters_elem): @@ -292,6 +293,7 @@ class XMLSerializer(Serializer): @param states_elem An XML Element that represents a list of States """ + return [] def _load_xml_fsm(self, fsm_elem): diff --git a/src/sugar/tutorius/tests/coretests.py b/src/sugar/tutorius/tests/coretests.py index 5f91a64..91f03fa 100644 --- a/src/sugar/tutorius/tests/coretests.py +++ b/src/sugar/tutorius/tests/coretests.py @@ -29,7 +29,7 @@ and event filters. Those are in their separate test module import unittest import logging -from sugar.tutorius.actions import Action, ClickAction, TypeTextAction +from sugar.tutorius.actions import Action, ClickAction, TypeTextActionz from sugar.tutorius.core import * from sugar.tutorius.filters import * diff --git a/src/sugar/tutorius/tests/run-tests.py b/src/sugar/tutorius/tests/run-tests.py index 0c9219b..6f22fee 100755 --- a/src/sugar/tutorius/tests/run-tests.py +++ b/src/sugar/tutorius/tests/run-tests.py @@ -48,5 +48,6 @@ if __name__=='__main__': from servicestests import * from gtkutilstests import * from overlaytests import * + from serializertests import * unittest.main() diff --git a/src/sugar/tutorius/tests/serializertests.py b/src/sugar/tutorius/tests/serializertests.py index c2aeda1..12e7ab8 100644 --- a/src/sugar/tutorius/tests/serializertests.py +++ b/src/sugar/tutorius/tests/serializertests.py @@ -80,7 +80,7 @@ class XMLSerializerTest(unittest.TestCase): # Compare the two files - #Remove test file and path + #Remove test file and path (commented for testing, to uncomment) ## os.remove(testpath + os.path.join(sugar.tutorius.bundler._get_store_root(), str(self.uuid)) + "/fsm.xml") ## os.removedirs(testpath) -- cgit v0.9.1