Author: bugman Date: Thu May 22 15:05:21 2008 New Revision: 6246 URL: http://svn.gna.org/viewcvs/relax?rev=6246&view=rev Log: Updated the state loading unit test to add additional data to the relax data store. Modified: 1.3/test_suite/unit_tests/state_testing_base.py Modified: 1.3/test_suite/unit_tests/state_testing_base.py URL: http://svn.gna.org/viewcvs/relax/1.3/test_suite/unit_tests/state_testing_base.py?rev=6246&r1=6245&r2=6246&view=diff ============================================================================== --- 1.3/test_suite/unit_tests/state_testing_base.py (original) +++ 1.3/test_suite/unit_tests/state_testing_base.py Thu May 22 15:05:21 2008 @@ -75,11 +75,17 @@ # Load the state. self.state.load_state(state='basic_single_pipe', dir_name=path+'/test_suite/shared_data/saved_states') - # Test the contents of the restored singleton. - self.assertEqual(relax_data_store.keys(), ['orig']) - self.assertEqual(relax_data_store.current_pipe, 'orig') + # Add a new data pipe and some data to it. + relax_data_store.add('new', 'jw_mapping') + relax_data_store[relax_data_store.current_pipe].z = [None, None] + + + # Test the contents of the restored singleton (with subsequent data added). + self.assertEqual(relax_data_store.keys(), ['orig', 'new']) + self.assertEqual(relax_data_store.current_pipe, 'new') self.assertEqual(relax_data_store['orig'].x, 1) self.assertEqual(relax_data_store.y, 'Hello') + self.assertEqual(relax_data_store['new'].z, [None, None]) def test_save(self):