Author: bugman Date: Fri Sep 11 11:36:02 2009 New Revision: 9513 URL: http://svn.gna.org/viewcvs/relax?rev=9513&view=rev Log: Duplicated the test_state() system test into test_state_pickle() and test_state_xml(). This tests both formats. Modified: 1.3/test_suite/system_tests/state.py Modified: 1.3/test_suite/system_tests/state.py URL: http://svn.gna.org/viewcvs/relax/1.3/test_suite/system_tests/state.py?rev=9513&r1=9512&r2=9513&view=diff ============================================================================== --- 1.3/test_suite/system_tests/state.py (original) +++ 1.3/test_suite/system_tests/state.py Fri Sep 11 11:36:02 2009 @@ -54,20 +54,39 @@ pass - def test_state(self): - """Test the saving, loading, and second saving and loading of the program state.""" + def test_state_pickle(self): + """Test the saving, loading, and second saving and loading of the program state in pickled format.""" # Create a data pipe. self.relax.interpreter._Pipe.create('test', 'mf') # Save the state. - self.relax.interpreter._State.save(self.tmpfile, force=True) + self.relax.interpreter._State.save(self.tmpfile, pickle=True, force=True) # Load the state. self.relax.interpreter._State.load(self.tmpfile, force=True) # Save the state. - self.relax.interpreter._State.save(self.tmpfile, force=True) + self.relax.interpreter._State.save(self.tmpfile, pickle=True, force=True) + + # Load the state. + self.relax.interpreter._State.load(self.tmpfile, force=True) + + + def test_state_xml(self): + """Test the saving, loading, and second saving and loading of the program state in XML format.""" + + # Create a data pipe. + self.relax.interpreter._Pipe.create('test', 'mf') + + # Save the state. + self.relax.interpreter._State.save(self.tmpfile, pickle=False, force=True) + + # Load the state. + self.relax.interpreter._State.load(self.tmpfile, force=True) + + # Save the state. + self.relax.interpreter._State.save(self.tmpfile, pickle=False, force=True) # Load the state. self.relax.interpreter._State.load(self.tmpfile, force=True)