Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes
Archetypes.tests.test_sqlstorage.SQLStorageTestBase Class Reference
Inheritance diagram for Archetypes.tests.test_sqlstorage.SQLStorageTestBase:
Inheritance graph
Collaboration diagram for Archetypes.tests.test_sqlstorage.SQLStorageTestBase:
Collaboration graph

List of all members.

Public Member Functions

def afterSetUp
def beforeTearDown
def afterClear

Static Public Attributes

string db_name = ''
 cleanup = cleanup
tuple gadfly_dir = os.path.join(PACKAGE_HOME, 'gadfly')
tuple demo_dir = os.path.join(gadfly_dir, 'demo')

Detailed Description

Abstract base class for the tests 

Definition at line 275 of file

Member Function Documentation

Definition at line 264 of file

00265     def afterClear(self):
00266         # Restore Gadfly config
00267         if hasattr(self, '_data_dir'):
00268             from Products.ZGadflyDA import db
00269             db.data_dir = self._data_dir
00270         # Remove Gadfly database
00271         if os.path.isdir(self.gadfly_dir):
00272             import shutil
00273             shutil.rmtree(self.gadfly_dir, 1)

Reimplemented from Archetypes.tests.test_sqlstorage.GadflyMagic.

Definition at line 281 of file

00282     def afterSetUp(self):
00283         GadflyMagic.afterSetUp(self)
00284         commonAfterSetUp(self)

Here is the call graph for this function:

Definition at line 285 of file

00286     def beforeTearDown(self):
00287         clean = self.cleanup.get(self.db_name, None)
00288         if clean is not None:
00289             clean(self)

Member Data Documentation

Definition at line 279 of file

tuple Archetypes.tests.test_sqlstorage.GadflyMagic.demo_dir = os.path.join(gadfly_dir, 'demo') [static, inherited]

Definition at line 253 of file

tuple Archetypes.tests.test_sqlstorage.GadflyMagic.gadfly_dir = os.path.join(PACKAGE_HOME, 'gadfly') [static, inherited]

Definition at line 252 of file

The documentation for this class was generated from the following file: