mailr5546 - /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 April 10, 2008 - 12:40:
Author: bugman
Date: Thu Apr 10 12:40:52 2008
New Revision: 5546

URL: http://svn.gna.org/viewcvs/relax?rev=5546&view=rev
Log:
Fixes for the sequence.write() user function arg unit tests.


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=5546&r1=5545&r2=5546&view=diff
==============================================================================
--- 1.3/test_suite/unit_tests/_prompt/test_sequence.py (original)
+++ 1.3/test_suite/unit_tests/_prompt/test_sequence.py Thu Apr 10 12:40:52 
2008
@@ -249,69 +249,69 @@
             self.assertRaises(RelaxNoneStrError, self.sequence_fns.write, 
file='a', dir=data[1])
 
 
-    def test_write_argfail_mol_name_col(self):
-        """The proper failure of the sequence.write() user function for the 
mol_name_col argument."""
-
-        # Loop over the data types.
-        for data in DATA_TYPES:
-            # Catch the None, int, and bin arguments, and skip them.
-            if data[0] == 'None' or data[0] == 'int' or data[0] == 'bin':
-                continue
-
-            # The argument test.
-            self.assertRaises(RelaxNoneIntError, self.sequence_fns.write, 
file='a', mol_name_col=data[1])
-
-
-    def test_write_argfail_res_num_col(self):
-        """The proper failure of the sequence.write() user function for the 
res_num_col argument."""
-
-        # Loop over the data types.
-        for data in DATA_TYPES:
-            # Catch the None, int, and bin arguments, and skip them.
-            if data[0] == 'None' or data[0] == 'int' or data[0] == 'bin':
-                continue
-
-            # The argument test.
-            self.assertRaises(RelaxNoneIntError, self.sequence_fns.write, 
file='a', res_num_col=data[1])
-
-
-    def test_write_argfail_res_name_col(self):
-        """The proper failure of the sequence.write() user function for the 
res_name_col argument."""
-
-        # Loop over the data types.
-        for data in DATA_TYPES:
-            # Catch the None, int, and bin arguments, and skip them.
-            if data[0] == 'None' or data[0] == 'int' or data[0] == 'bin':
-                continue
-
-            # The argument test.
-            self.assertRaises(RelaxNoneIntError, self.sequence_fns.write, 
file='a', res_name_col=data[1])
-
-
-    def test_write_argfail_spin_num_col(self):
-        """The proper failure of the sequence.write() user function for the 
spin_num_col argument."""
-
-        # Loop over the data types.
-        for data in DATA_TYPES:
-            # Catch the None, int, and bin arguments, and skip them.
-            if data[0] == 'None' or data[0] == 'int' or data[0] == 'bin':
-                continue
-
-            # The argument test.
-            self.assertRaises(RelaxNoneIntError, self.sequence_fns.write, 
file='a', spin_num_col=data[1])
-
-
-    def test_write_argfail_spin_name_col(self):
-        """The proper failure of the sequence.write() user function for the 
spin_name_col argument."""
-
-        # Loop over the data types.
-        for data in DATA_TYPES:
-            # Catch the None, int, and bin arguments, and skip them.
-            if data[0] == 'None' or data[0] == 'int' or data[0] == 'bin':
-                continue
-
-            # The argument test.
-            self.assertRaises(RelaxNoneIntError, self.sequence_fns.write, 
file='a', spin_name_col=data[1])
+    def test_write_argfail_mol_name_flag(self):
+        """The proper failure of the sequence.write() user function for the 
mol_name_flag argument."""
+
+        # Loop over the data types.
+        for data in DATA_TYPES:
+            # Catch the bool arguments, and skip them.
+            if data[0] == 'bool':
+                continue
+
+            # The argument test.
+            self.assertRaises(RelaxBoolError, self.sequence_fns.write, 
file='a', mol_name_flag=data[1])
+
+
+    def test_write_argfail_res_num_flag(self):
+        """The proper failure of the sequence.write() user function for the 
res_num_flag argument."""
+
+        # Loop over the data types.
+        for data in DATA_TYPES:
+            # Catch the bool arguments, and skip them.
+            if data[0] == 'bool':
+                continue
+
+            # The argument test.
+            self.assertRaises(RelaxBoolError, self.sequence_fns.write, 
file='a', res_num_flag=data[1])
+
+
+    def test_write_argfail_res_name_flag(self):
+        """The proper failure of the sequence.write() user function for the 
res_name_flag argument."""
+
+        # Loop over the data types.
+        for data in DATA_TYPES:
+            # Catch the bool arguments, and skip them.
+            if data[0] == 'bool':
+                continue
+
+            # The argument test.
+            self.assertRaises(RelaxBoolError, self.sequence_fns.write, 
file='a', res_name_flag=data[1])
+
+
+    def test_write_argfail_spin_num_flag(self):
+        """The proper failure of the sequence.write() user function for the 
spin_num_flag argument."""
+
+        # Loop over the data types.
+        for data in DATA_TYPES:
+            # Catch the bool arguments, and skip them.
+            if data[0] == 'bool':
+                continue
+
+            # The argument test.
+            self.assertRaises(RelaxBoolError, self.sequence_fns.write, 
file='a', spin_num_flag=data[1])
+
+
+    def test_write_argfail_spin_name_flag(self):
+        """The proper failure of the sequence.write() user function for the 
spin_name_flag argument."""
+
+        # Loop over the data types.
+        for data in DATA_TYPES:
+            # Catch the bool arguments, and skip them.
+            if data[0] == 'bool':
+                continue
+
+            # The argument test.
+            self.assertRaises(RelaxBoolError, self.sequence_fns.write, 
file='a', spin_name_flag=data[1])
 
 
     def test_write_argfail_sep(self):




Related Messages


Powered by MHonArc, Updated Thu Apr 10 13:00:19 2008