mailr3752 - /1.3/test_suite/unit_tests/_prompt/test_state.py


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

Header


Content

Posted by edward on November 21, 2007 - 00:52:
Author: bugman
Date: Wed Nov 21 00:52:40 2007
New Revision: 3752

URL: http://svn.gna.org/viewcvs/relax?rev=3752&view=rev
Log:
Implemented the dir arg unit test for the state.save() user function.

And a fix for the file arg unit test of state.save().


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

Modified: 1.3/test_suite/unit_tests/_prompt/test_state.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/test_suite/unit_tests/_prompt/test_state.py?rev=3752&r1=3751&r2=3752&view=diff
==============================================================================
--- 1.3/test_suite/unit_tests/_prompt/test_state.py (original)
+++ 1.3/test_suite/unit_tests/_prompt/test_state.py Wed Nov 21 00:52:40 2007
@@ -92,7 +92,20 @@
                 continue
 
             # The argument test.
-            self.assertRaises(RelaxStrError, self.state.load_state, 
file=data[1])
+            self.assertRaises(RelaxStrError, self.state.save_state, 
file=data[1])
+
+
+    def test_save_argfail_dir(self):
+        """Test the proper failure of the state.save() user function for the 
dir 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.state.save_state, 
file='a', dir=data[1])
 
 
 




Related Messages


Powered by MHonArc, Updated Wed Nov 21 01:00:10 2007