mailr6124 - /1.3/test_suite/unit_tests/_prompt/test_select.py


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

Header


Content

Posted by edward on May 07, 2008 - 15:47:
Author: bugman
Date: Wed May  7 15:41:56 2008
New Revision: 6124

URL: http://svn.gna.org/viewcvs/relax?rev=6124&view=rev
Log:
Wrote 2 unit tests for the boolean args of the select user functions.


Modified:
    1.3/test_suite/unit_tests/_prompt/test_select.py

Modified: 1.3/test_suite/unit_tests/_prompt/test_select.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/test_suite/unit_tests/_prompt/test_select.py?rev=6124&r1=6123&r2=6124&view=diff
==============================================================================
--- 1.3/test_suite/unit_tests/_prompt/test_select.py (original)
+++ 1.3/test_suite/unit_tests/_prompt/test_select.py Wed May  7 15:41:56 2008
@@ -143,6 +143,19 @@
             self.assertRaises(RelaxNoneStrError, self.select_fns.read, 
file='unresolved', sep=data[1])
 
 
+    def test_read_argfail_boolean(self):
+        """The boolean arg test of the select.read() user function."""
+
+        # Loop over the data types.
+        for data in DATA_TYPES:
+            # Catch the str argument, and skip it.
+            if data[0] == 'str':
+                continue
+
+            # The argument test.
+            self.assertRaises(RelaxStrError, self.select_fns.read, 
file='unresolved', boolean=data[1])
+
+
     def test_read_argfail_change_all(self):
         """The change_all arg test of the select.read() user function."""
 
@@ -182,6 +195,19 @@
             self.assertRaises(RelaxNoneStrError, self.select_fns.spin, 
spin_id=data[1])
 
 
+    def test_spin_argfail_boolean(self):
+        """The boolean arg test of the select.spin() user function."""
+
+        # Loop over the data types.
+        for data in DATA_TYPES:
+            # Catch the str argument, and skip it.
+            if data[0] == 'str':
+                continue
+
+            # The argument test.
+            self.assertRaises(RelaxStrError, self.select_fns.spin, 
boolean=data[1])
+
+
     def test_spin_argfail_change_all(self):
         """The change_all arg test of the select.spin() user function."""
 




Related Messages


Powered by MHonArc, Updated Wed May 07 16:00:16 2008