mailr3620 - /1.3/test_suite/unit_tests/prompt/test_spin.py


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

Header


Content

Posted by edward on November 20, 2007 - 10:25:
Author: bugman
Date: Tue Nov 20 10:25:38 2007
New Revision: 3620

URL: http://svn.gna.org/viewcvs/relax?rev=3620&view=rev
Log:
Added a unit test for the proper failure of the spin.display() user function 
for the spin_id arg.


Modified:
    1.3/test_suite/unit_tests/prompt/test_spin.py

Modified: 1.3/test_suite/unit_tests/prompt/test_spin.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/test_suite/unit_tests/prompt/test_spin.py?rev=3620&r1=3619&r2=3620&view=diff
==============================================================================
--- 1.3/test_suite/unit_tests/prompt/test_spin.py (original)
+++ 1.3/test_suite/unit_tests/prompt/test_spin.py Tue Nov 20 10:25:38 2007
@@ -140,7 +140,7 @@
 
 
     def test_delete_argfail_spin_id(self):
-        """Test the proper failure of the spin.create() user function for 
the spin_id argument."""
+        """Test the proper failure of the spin.delete() user function for 
the spin_id argument."""
 
         # Loop over the data types.
         for data in return_data_types():
@@ -152,5 +152,18 @@
             self.assertRaises(RelaxStrError, self.spin_fns.delete, 
spin_id=data[1])
 
 
+    def test_display_argfail_spin_id(self):
+        """Test the proper failure of the spin.display() user function for 
the spin_id argument."""
+
+        # Loop over the data types.
+        for data in return_data_types():
+            # Catch the None and str arguments, and skip them.
+            if data[0] == 'None' or data[0] == 'str':
+                continue
+
+            # The argument test.
+            self.assertRaises(RelaxNoneStrError, self.spin_fns.display, 
spin_id=data[1])
 
 
+
+




Related Messages


Powered by MHonArc, Updated Tue Nov 20 10:40:11 2007