Back to index

plone3  3.1.7
CMFTestCase.framework Namespace Reference


string __version__ = '0.2.3'
tuple __SOFTWARE_HOME = os.environ.get('SOFTWARE_HOME', '')
tuple __INSTANCE_HOME = os.environ.get('INSTANCE_HOME', '')
list p0 = sys.path[0]
tuple p = dsandsoros.getcwd()
tuple zope_home = os.path.dirname(os.path.dirname(p))
string ztc_common = ''
tuple ztc_common_global = os.path.join(p, ztc_common)
int f = 0

Variable Documentation

tuple CMFTestCase.framework.__INSTANCE_HOME = os.environ.get('INSTANCE_HOME', '')

Definition at line 45 of file

tuple CMFTestCase.framework.__SOFTWARE_HOME = os.environ.get('SOFTWARE_HOME', '')

Definition at line 44 of file



This version of 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 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

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], ''))

...and the following at the bottom:

if name == 'main': framework()

Definition at line 40 of file

Definition at line 90 of file

tuple CMFTestCase.framework.p = dsandsoros.getcwd()

Definition at line 61 of file

string CMFTestCase.framework.p0 = sys.path[0]

Definition at line 56 of file

Definition at line 60 of file

tuple CMFTestCase.framework.zope_home = os.path.dirname(os.path.dirname(p))

Definition at line 64 of file

string CMFTestCase.framework.ztc_common = ''

Definition at line 87 of file

Definition at line 88 of file