"Hannes Calitz"
<[EMAIL PROTECTED]> writes:

> Here are the files used for the test:
>
> base.py: http://paste.plone.org/24699test_setup.py: 
> http://paste.plone.org/24700
>
> Thanks for the help btw. :)

Are you sure that...

    ptc.setupPloneSite(products=['optilux.policy'])

will actually run the profile?  Why aren't you using the
extension_profiles argument to ptc.setupPloneSite instead?  Maybe try
that.

Ross

> 2008/10/30 Ross Patterson <[EMAIL PROTECTED]>
>
>     hannesc <[EMAIL PROTECTED]>
>     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
>     [email protected]
>     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
>
> _______________________________________________
> Product-Developers mailing list
> [email protected]
> http://lists.plone.org/mailman/listinfo/product-developers


_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to