mò "á¸Ec@sdZdZeiiddƒZeiiddƒZeieiƒoei i eƒZneieiƒoei i eƒZne i i dƒpe i dZeo$edjoeieƒdZneZeoep eiƒZZx§eo…ei iei iedƒƒo9ei i ei i eƒƒZeeege i d*Pneodpei ieƒ\ZZqúWd Gd GHe idƒnd kZd kZeei iei i eiƒd ƒƒei iei i eiƒd ƒZei ieƒpdGdGHe idƒndZei ieeƒZdZ ei i!eƒoeeƒdZ nei i!eƒoeeƒdZ ne pdeGHe idƒqÀndeiiddƒGHdeiiddƒGHe i"i#ƒd S(s7ZopeTestCase framework COPY THIS FILE TO YOUR 'tests' DIRECTORY. This version of framework.py will use the SOFTWARE_HOME environment variable to locate Zope and the Testing package. If the tests are run in an INSTANCE_HOME installation of Zope, Products.__path__ and sys.path with be adjusted to include the instance's Products and lib/python directories respectively. If you explicitly set INSTANCE_HOME prior to running the tests, auto-detection is disabled and the specified path will be used instead. If the 'tests' directory contains a custom_zodb.py file, INSTANCE_HOME will be adjusted to use it. If you set the ZEO_INSTANCE_HOME environment variable a ZEO setup is assumed, and you can attach to a running ZEO server (via the instance's custom_zodb.py). The following code should be at the top of every test module: import os, sys if __name__ == '__main__': execfile(os.path.join(sys.path[0], 'framework.py')) ...and the following at the bottom: if __name__ == '__main__': framework() $Id: framework.py 33270 2005-07-11 18:39:15Z yuppie $ s0.2.4t SOFTWARE_HOMEtt INSTANCE_HOMEtTestingit__main__is!Unable to locate Testing package.s$You might need to set SOFTWARE_HOME.Ns common.pyt ZopeTestCases&Unable to locate ZopeTestCase package.s'You might need to install ZopeTestCase.s ztc_common.pysUnable to locate %s.sSOFTWARE_HOME: %ssNot setsINSTANCE_HOME: %s(RR($t__doc__t __version__tostenvirontgett__SOFTWARE_HOMEt__INSTANCE_HOMEtendswithtseptpathtdirnametsystmodulesthas_keytp0t__name__tchdirtstgetcwdtptdtisdirtjoint zope_hometsplittexitRtunittesttexecfilet__file__t ztc_commontztc_common_globaltftexistststdouttflush( RR%RR#R R RRRR$R RR((t8/data/zmath/zope/lib/python/Interface/tests/framework.pyt?/s^   "+($