mailr6154 - /1.3/test_suite/unit_tests/_generic_fns/_structure/test_api_base.py


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

Header


Content

Posted by edward on May 20, 2008 - 11:59:
Author: bugman
Date: Tue May 20 11:59:04 2008
New Revision: 6154

URL: http://svn.gna.org/viewcvs/relax?rev=6154&view=rev
Log:
Improvements to the structural API unit tests.


Modified:
    1.3/test_suite/unit_tests/_generic_fns/_structure/test_api_base.py

Modified: 1.3/test_suite/unit_tests/_generic_fns/_structure/test_api_base.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/test_suite/unit_tests/_generic_fns/_structure/test_api_base.py?rev=6154&r1=6153&r2=6154&view=diff
==============================================================================
--- 1.3/test_suite/unit_tests/_generic_fns/_structure/test_api_base.py 
(original)
+++ 1.3/test_suite/unit_tests/_generic_fns/_structure/test_api_base.py Tue 
May 20 11:59:04 2008
@@ -49,9 +49,12 @@
             if search('^_', name):
                 continue
 
+            # Get the object in the derived class.
+            obj = getattr(internal, name)
+
             # Not present.
             if name not in base_names:
-                self.fail('The object ' + name + ' cannot be found in the 
structural API base class')
+                self.fail('The object ' + `name` + ' ' + `type(obj)` + ' 
cannot be found in the structural API base class.')
 
 
     def test_Scientific_objects(self):
@@ -70,6 +73,9 @@
             if search('^_', name):
                 continue
 
+            # Get the object in the derived class.
+            obj = getattr(sci, name)
+
             # Not present.
             if name not in base_names:
-                self.fail('The object ' + name + ' cannot be found in the 
structural API base class')
+                self.fail('The object ' + `name` + ' ' + `type(obj)` + ' 
cannot be found in the structural API base class.')




Related Messages


Powered by MHonArc, Updated Tue May 20 12:20:22 2008