[Product-Developers] Need help writing tests

hannesc hannes at opennetworks.co.za
Tue Oct 28 07:05:57 UTC 2008


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
<ml-user+19154-1705297588 at n2.nabble.com<ml-user%2B19154-1705297588 at n2.nabble.com>
>

>
>
> 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
> Product-Developers at ...<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=1385915&i=0>
> http://lists.plone.org/mailman/listinfo/product-developers
>
>
> ------------------------------
>  View message @
> http://n2.nabble.com/Need-help-writing-tests-tp1381925p1385915.html
> To unsubscribe from Need help writing tests, click here< (link removed) >.
>
>
>


-- 
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

-- 
View this message in context: http://n2.nabble.com/Need-help-writing-tests-tp1381925p1385961.html
Sent from the Product Developers mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.plone.org/pipermail/plone-product-developers/attachments/20081028/ed2e80a6/attachment.html>


More information about the Product-Developers mailing list