def testInit(self): from file_system import FileSystem from system import System, system fileSystem = FileSystem() print IceCommon.openOfficeName IceCommon.setup(system, fileSystem)
# You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # from ice_reps import * import unittest from unittest import TestCase, TextTestRunner, TestLoader, TestResult, defaultTestLoader as testLoader import os, time ##import sys ##if sys.path.count("../ice")==0: sys.path.append("../ice") ##from ixe_globals import * from ice_common import IceCommon IceCommon.setup() class IceRepsTests(TestCase): def setUp(self): pass def tearDown(self): pass def testNames(self): reps = IceRepositories() print reps.names if __name__ == "__main__":
# it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # from ice_common import IceCommon IceCommon.setup() from xml_diff import XmlTestCase, XmlDiff from ims_resources import ImsResources imsNSList = [ \ ("ims", "http://www.imsglobal.org/xsd/imscp_v1p1"), \ ("imsmd", "http://www.imsglobal.org/xsd/imsmd_v1p2"), \ ("xsi", "http://www.w3.org/2001/XMLSchema-instance"), \ ] resourcesXmlStr = """<resources> <resource identifier="1d8994d66d3f5774b5d92b143bfd2daa" type="webcontent"