Author: bugman Date: Mon Nov 26 15:59:48 2007 New Revision: 4030 URL: http://svn.gna.org/viewcvs/relax?rev=4030&view=rev Log: Updated the test_delete() unit test. The diff_tensor object should be removed by the delete() function. Modified: 1.3/test_suite/unit_tests/diffusion_tensor_testing_base.py Modified: 1.3/test_suite/unit_tests/diffusion_tensor_testing_base.py URL: http://svn.gna.org/viewcvs/relax/1.3/test_suite/unit_tests/diffusion_tensor_testing_base.py?rev=4030&r1=4029&r2=4030&view=diff ============================================================================== --- 1.3/test_suite/unit_tests/diffusion_tensor_testing_base.py (original) +++ 1.3/test_suite/unit_tests/diffusion_tensor_testing_base.py Mon Nov 26 15:59:48 2007 @@ -204,14 +204,14 @@ prompt.diffusion_tensor.delete(). """ - # Set the tm value. - relax_data_store['orig'].diff_tensor.tm = 0.0 + # Initialise the tensor. + self.diffusion_tensor_fns.init(params=(8.6, 1.3, 600, -20), time_scale=1e-9, d_scale=1e7, angle_units='deg', param_types=2, spheroid_type='prolate', fixed=0) # Delete the tensor data. self.diffusion_tensor_fns.delete() - # Test that tm does not exist. - self.failIf(hasattr(relax_data_store['orig'].diff_tensor, 'tm')) + # Test that the diff_tensor object does not exist. + self.failIf(hasattr(relax_data_store['orig'], 'diff_tensor')) def test_delete_fail_no_data(self):