mailr3791 - /1.3/test_suite/unit_tests/_prompt/test_sequence.py


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

Header


Content

Posted by edward on November 22, 2007 - 01:05:
Author: bugman
Date: Thu Nov 22 01:05:15 2007
New Revision: 3791

URL: http://svn.gna.org/viewcvs/relax?rev=3791&view=rev
Log:
Implemented the sep arg unit test for the sequence.read() user function.


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

Modified: 1.3/test_suite/unit_tests/_prompt/test_sequence.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/test_suite/unit_tests/_prompt/test_sequence.py?rev=3791&r1=3790&r2=3791&view=diff
==============================================================================
--- 1.3/test_suite/unit_tests/_prompt/test_sequence.py (original)
+++ 1.3/test_suite/unit_tests/_prompt/test_sequence.py Thu Nov 22 01:05:15 
2007
@@ -141,3 +141,19 @@
 
             # The argument test.
             self.assertRaises(RelaxNoneIntError, self.sequence_fns.read, 
file='a', spin_name_col=data[1])
+
+
+    def test_read_argfail_sep(self):
+        """The proper failure of the sequence.read() user function for the 
sep 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.sequence_fns.read, 
file='a', sep=data[1])
+
+
+




Related Messages


Powered by MHonArc, Updated Thu Nov 22 01:20:19 2007