Back to index

plone3  3.1.7
Public Member Functions
GenericSetup.tests.test_zcml.ExportStepTests Class Reference

List of all members.

Public Member Functions

def setUp
def tearDown
def testRegistration

Detailed Description

Definition at line 344 of file test_zcml.py.


Member Function Documentation

Definition at line 346 of file test_zcml.py.

00346 
00347     def setUp(self):
00348         import Products.GenericSetup
00349         zcml.load_config('meta.zcml', Products.GenericSetup)

Definition at line 350 of file test_zcml.py.

00350 
00351     def tearDown(self):
00352         cleanUp()

Here is the call graph for this function:

Definition at line 353 of file test_zcml.py.

00353 
00354     def testRegistration(self):
00355         zcml.load_string("""<configure
00356                               xmlns:genericsetup="http://namespaces.zope.org/genericsetup"
00357                               i18n_domain="genericsetup">
00358                              <genericsetup:exportStep
00359                                  name="name"
00360                                  title="title"
00361                                  description="description"
00362                                  handler="Products.GenericSetup.tests.test_zcml.dummy_exportstep_handler"
00363                                  />
00364                               </configure>
00365                               """)
00366         from Products.GenericSetup.zcml import _export_step_regs
00367         self.assertEqual(_export_step_regs, [u'name'])
00368         self.assertEqual( _export_step_registry.listSteps(), [u'name'])
00369         data=_export_step_registry.getStepMetadata(u'name')
00370         self.assertEqual(data["handler"],
00371                 'Products.GenericSetup.tests.test_zcml.dummy_exportstep_handler')
00372         self.assertEqual(data["description"], u"description")
00373         self.assertEqual(data["title"], u"title")
00374         self.assertEqual(data["id"], u"name")
00375 


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