mailUnit tests for methods/objects in __init__.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by Edward d'Auvergne on March 13, 2007 - 09:52:
Gary,

I've written some unit tests which are located in the file
'test_suite/unit_tests/data/__init__.py'.  Would you know what
modifications I need to apply to make these tests run?  These tests
are for the methods of the Data singleton class (the relax data
storage object) which is located in 'data/__init__.py'.  I haven't
used the statement 'from x import Data' for this class so it is the
legal and ubiquitous usage of an __init__.py file.  Would
'unit_test_runner.py' handle this code?

Thanks,

Edward


P.S. These tests demonstrate the utility of subclassing the singleton and is one reason I was arguing for the use of the class import rather than reference import.



Related Messages


Powered by MHonArc, Updated Wed Mar 14 12:40:38 2007