;ò ðX‡>c@sªdZddd!Zddd!Zddd!ZdkZdkZedjo$eeii eid d ƒƒnd k l Z d k l Z lZe id ƒe idƒye idƒWnnXye idƒWnnXye idƒWnnXdklZlZe iidƒ\ZZdeeefZde i fd„ƒYZedjo5de_dGeiƒiƒGHeddddƒndkZd„ZdS(s½ $RCSfile: TestURL.py,v $ Unit tests for ZopeXMLMethods product Author: Craeg Strong Modified by Philipp von Weitershausen Release: 1.0 s $Name: $iiþÿÿÿs$Date: 2003/03/30 20:51:59 $s$Revision: 1.1 $i Ns__main__is framework.py(s ZopeTestCase(s XSLTMethodsProcessorChoosersZopeXMLMethodss PageTemplatess ParsedXMLs ExternalFilesExtFile(s _folder_names_standard_permissionsishttp://%s:%d/%ssXSLTMethodTestCasecBs;tZdZd„Zd„Zd„Zd„Zd„ZRS(s Unit tests for ZopeXMLMethods Zope Product. These tests use the ZopeTestCase enhanced testing product. This file is not part of the automated test suite, but is here to provide a convenient standalone way to test relative URL resolution. This capability is proven problematic for many XSLT processors that are Python wrappers on top of C or C++ libraries. I believe the problems are related to threading and locking issues. This test file is to be used to help track down these problems. cCstƒiƒdS(N(sget_transactionsbegin(sself((sK/mnt/gmirror/ports/www/zope-xmlmethods/work/ZopeXMLMethods/tests/TestURL.pys beforeSetUp>scCs dk}|iddtƒdS(sAdd object to default fixtureNsignores(swarningssfilterwarningss UserWarning(sselfswarnings((sK/mnt/gmirror/ports/www/zope-xmlmethods/work/ZopeXMLMethods/tests/TestURL.pys afterSetUpAs cCstƒiƒdS(N(sget_transactionscommit(sself((sK/mnt/gmirror/ports/www/zope-xmlmethods/work/ZopeXMLMethods/tests/TestURL.pys beforeClosePscCsdS(sClean up after myselfN((sself((sK/mnt/gmirror/ports/www/zope-xmlmethods/work/ZopeXMLMethods/tests/TestURL.pys afterClearTscCs8tddƒ}|iidd|ƒtddƒ}|iidd|ƒdg|i_dg|i_d |i_|ii dƒ|id}|i d ƒ|d }|i d ƒ|d }td dƒ}|idd|ƒtƒiƒti|id dddƒ}|i|iiii|iiƒdƒdS(s?Ensure that transformation resolves URLs in documents correctlystestfiles/paramfile.xslsrbs aTransformersstestfiles/param.xmlsaSources arielpartnerss propertiess'arielpartners/propfolder/foo/propertiess propfoldersfoostestfiles/properties.xmlsids aXSLTMethodsxslTransformerIds Hello, sneezyN(sopensxsltFilesselfsfoldersmanage_addDTMLMethodsxmlFiles URNnamespacess XSLparameterss propertiessmanage_addFolders arielpartnerss propfoldersfoospropFilesget_transactionscommits XSLTMethods addInstancesxforms assertEqualssaSources aXSLTMethods transformsappsREQUEST(sselfsxmlFiles arielpartnerssxsltFilesxforms propfoldersfoospropFile((sK/mnt/gmirror/ports/www/zope-xmlmethods/work/ZopeXMLMethods/tests/TestURL.pystest_09\s*        !(s__name__s __module__s__doc__s beforeSetUps afterSetUps beforeCloses afterClearstest_09(((sK/mnt/gmirror/ports/www/zope-xmlmethods/work/ZopeXMLMethods/tests/TestURL.pysXSLTMethodTestCase,s     s Pyana 0.6sUsing processor:s descriptionsis verbosityicCs*tiƒ}|ititƒƒ|SdS(N(sunittests TestSuitessuitesaddTests makeSuitesXSLTMethodTestCase(ssuite((sK/mnt/gmirror/ports/www/zope-xmlmethods/work/ZopeXMLMethods/tests/TestURL.pys test_suite‘s (s__doc__s __cvstag__s__date__s __version__sosssyss__name__sexecfilespathsjoinsTestings ZopeTestCasesProducts.ZopeXMLMethodss XSLTMethodsProcessorChoosersinstallProductsTesting.ZopeTestCases _folder_names_standard_permissionssutilss startZServershostsportsbasesXSLTMethodTestCasesdefaultsdefaultProcessors frameworksunittests test_suite(s__date__s _folder_names ZopeTestCasesunittests_standard_permissionss XSLTMethodsProcessorChoosers __cvstag__shostsbasessyss test_suites __version__sossportsXSLTMethodTestCase((sK/mnt/gmirror/ports/www/zope-xmlmethods/work/ZopeXMLMethods/tests/TestURL.pys? s@    $   W