Author: bugman Date: Wed Nov 21 00:51:39 2007 New Revision: 3751 URL: http://svn.gna.org/viewcvs/relax?rev=3751&view=rev Log: Implemented the file arg unit test for the state.save() user function. 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=3751&r1=3750&r2=3751&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:51:39 2007 @@ -82,4 +82,17 @@ self.assertRaises(RelaxNoneStrError, self.state.load_state, file='a', dir=data[1]) + def test_save_argfail_file(self): + """Test the proper failure of the state.save() user function for the file argument.""" + # Loop over the data types. + for data in return_data_types(): + # Catch the str arguments, and skip them. + if data[0] == 'str': + continue + + # The argument test. + self.assertRaises(RelaxStrError, self.state.load_state, file=data[1]) + + +