Back to index

plone3  3.1.7
Public Member Functions
GenericSetup.tests.test_stepzcml.ImportStepTests Class Reference

List of all members.

Public Member Functions

def setUp
def tearDown
def testEmptyImport
def testOneStepImport

Detailed Description

Definition at line 37 of file test_stepzcml.py.


Member Function Documentation

Definition at line 39 of file test_stepzcml.py.

00039 
00040     def setUp(self):
00041         zcml.load_config('meta.zcml', Products.GenericSetup)

Definition at line 42 of file test_stepzcml.py.

00042 
00043     def tearDown(self):
00044         cleanUp()

Here is the call graph for this function:

Definition at line 45 of file test_stepzcml.py.

00045 
00046     def testEmptyImport(self):
00047         zcml.load_string(EMPTY_ZCML)
00048         self.assertEqual(_import_step_registry._registered, {})

Definition at line 49 of file test_stepzcml.py.

00049 
00050     def testOneStepImport(self):
00051         zcml.load_string(ONE_STEP_ZCML)
00052         self.assertEqual(_import_step_registry._registered.keys(),
00053             [ u'Products.GenericSetup.teststep'  ])
00054         info = _import_step_registry._registered[ u'Products.GenericSetup.teststep' ]
00055         self.assertEqual( info['description'],
00056                 u'step description' )
00057         self.assertEqual( info['title'],
00058                 u'step title' )
00059         self.assertEqual( info['handler'],
00060                 'Products.GenericSetup.initialize')
00061         self.assertEqual( info['id'],
00062                 u'Products.GenericSetup.teststep' )
00063 


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