In the optilux sources which I downloaded from Pakt, there is a base.py. You could download it from http://www.packtpub.com/Professional-Plone-web-applications-CMS/book and compare.

br
alex

hannesc schrieb:
Nope, there is no such file. As I said, I am working of examples, and in there, the OptiluxPolicyTestCase class is in the __init__.py file. Should I simply remove the ".base" from my import statement in this case, or should I move it to a file called base.py? Also, could this be what is causing the tests module not to find the test_suite attribute?

2008/10/28 Alexander Pilz <[EMAIL PROTECTED] <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=1385961&i=0>>



    hannesc schrieb:
    Right LOL So, here is the error I'm getting:

    *
    Module: optilux.policy.tests

    AttributeError: 'module' object has no attribute 'test_suite'


    Module: optilux.policy.tests.test_setup

    Traceback (most recent call last):
      File
    
"/home/hannes/optilux/src/optilux.policy/optilux/policy/tests/test_setup.py",
    line 2, in ?
        from optilux.policy.tests.base import OptiluxPolicyTestCase
    ImportError: No module named base
    *
And you are sure there is a file named * optilux/policy/tests/base.py?
    br
    alex
    *


    _______________________________________________
    Product-Developers mailing list
    [EMAIL PROTECTED]
    <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=1385915&i=0>
    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 <http://www.opennetworks.co.za>
*****************************************************
ONCMS: Content Managed Websites
ONCRM: Customer Relationship Management
GMAIL: Commercial Google Mail Solutions

------------------------------------------------------------------------
View this message in context: Re: [Product-Developers] Need help writing tests <http://n2.nabble.com/Need-help-writing-tests-tp1381925p1385961.html> Sent from the Product Developers mailing list archive <http://n2.nabble.com/Product-Developers-f293354.html> at Nabble.com.
------------------------------------------------------------------------

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

--
Alexander Pilz
SYSLAB.COM GmbH, Landwehrstrasse 60-62, 80336 Munich, Germany
http://www.syslab.com - Amtsgericht Muenchen, HRB 135057
Steuernummer 143/184/50154 - Ust.-ID: DE212842815

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

Reply via email to