[Product-Developers] Re: Import steps not working

Hannes Calitz hannes at opennetworks.co.za
Thu Oct 30 07:26:15 UTC 2008


Here are the files used for the test:

base.py: http://paste.plone.org/24699
test_setup.py: http://paste.plone.org/24700

Thanks for the help btw. :)

Hannes

2008/10/30 Ross Patterson <me at rpatterson.net>

> hannesc <hannes at opennetworks.co.za>
> writes:
>
> > I am currently working on setting up a site policy that installs the
> > RichDocument Product, disables the default "Page" type, and renames
> > RichDocument to "Web Page". I have written the
> > optilux/policy/profiles/default/import_steps.xml that looks as follows,
> > http://paste.plone.org/24697. The optilux/policy/setuphandlers.py looks
> like
> > this, http://paste.plone.org/24698.
> >
> > The problem I am having is that it seems as though the importVarious does
> > not seem to be running, as my tests return the following errors:
>
> How are you running your profile in your test setup?
>
> Ross
>
> > Failure in test test_plain_document_disabled
> > (optilux.policy.tests.test_setup.TestSetup)
> > Traceback (most recent call last):
> >   File
> >
> "/home/hannes/optilux/parts/zope2/lib/python/Testing/ZopeTestCase/profiler.py",
> > line 98, in __call__
> >     testMethod()
> >   File
> >
> "/home/hannes/optilux/src/optilux.policy/optilux/policy/tests/test_setup.py",
> > line 46, in test_plain_document_disabled
> >     self.failIf(document_fti.global_allow)
> >   File "/usr/lib/python2.4/unittest.py", line 305, in failIf
> >     if expr: raise self.failureException, msg
> > AssertionError
> >
> > ....
> >
> > Failure in test test_richdocument_renamed_to_page
> > (optilux.policy.tests.test_setup.TestSetup)
> > Traceback (most recent call last):
> >   File
> >
> "/home/hannes/optilux/parts/zope2/lib/python/Testing/ZopeTestCase/profiler.py",
> > line 98, in __call__
> >     testMethod()
> >   File
> >
> "/home/hannes/optilux/src/optilux.policy/optilux/policy/tests/test_setup.py",
> > line 50, in test_richdocument_renamed_to_page
> >     self.assertEquals("Web Page", rich_document_fti.title)
> >   File "/usr/lib/python2.4/unittest.py", line 333, in failUnlessEqual
> >     raise self.failureException, \
> > AssertionError: 'Web Page' != 'Rich document'
> >
> > ..
> >
> > Failure in test test_staffmember_group_added
> > (optilux.policy.tests.test_setup.TestSetup)
> > Traceback (most recent call last):
> >   File
> >
> "/home/hannes/optilux/parts/zope2/lib/python/Testing/ZopeTestCase/profiler.py",
> > line 98, in __call__
> >     testMethod()
> >   File
> >
> "/home/hannes/optilux/src/optilux.policy/optilux/policy/tests/test_setup.py",
> > line 38, in test_staffmember_group_added
> >     self.assertEquals(1, len(self.acl_users.searchGroups(name='Staff')))
> >   File "/usr/lib/python2.4/unittest.py", line 333, in failUnlessEqual
> >     raise self.failureException, \
> > AssertionError: 1 != 0
> >
> > Anyone have any ideas?
>
>
> _______________________________________________
> Product-Developers mailing list
> Product-Developers at lists.plone.org
> http://lists.plone.org/mailman/listinfo/product-developers
>



-- 
Regards,

Hannes Calitz
Developer
OpenNetworks
Tel +27 11 317 4900
Fax +27 0866 534 816
www.opennetworks.co.za
*****************************************************
ONCMS: Content Managed Websites
ONCRM: Customer Relationship Management
GMAIL: Commercial Google Mail Solutions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.plone.org/pipermail/plone-product-developers/attachments/20081030/4e985209/attachment.html>


More information about the Product-Developers mailing list