Author: bugman Date: Sat Jan 13 08:37:06 2007 New Revision: 3003 URL: http://svn.gna.org/viewcvs/relax?rev=3003&view=rev Log: Modification of the 'test_set_tm' diffusion tensor data structure unit test. After setting the tm parameter, the automatically generated Diso parameter is tested to see if it is correctly set. Modified: 1.3/test_suite/unit_tests/data/test_diff_tensor.py Modified: 1.3/test_suite/unit_tests/data/test_diff_tensor.py URL: http://svn.gna.org/viewcvs/relax/1.3/test_suite/unit_tests/data/test_diff_tensor.py?rev=3003&r1=3002&r2=3003&view=diff ============================================================================== --- 1.3/test_suite/unit_tests/data/test_diff_tensor.py (original) +++ 1.3/test_suite/unit_tests/data/test_diff_tensor.py Sat Jan 13 08:37:06 2007 @@ -54,7 +54,10 @@ def test_set_tm(self): - """Test the setting of the tm parameter.""" + """Test the setting of the tm parameter. + + The setting of the tm parameter should automatically create the Diso parameter. + """ # Set the tm value to 10 ns. self.diff_data.tm = 1e-8 @@ -63,6 +66,10 @@ self.assert_(hasattr(self.diff_data, 'tm')) self.assertEqual(self.diff_data.tm, 1e-8) + # Test that the Diso parameter has been set correctly. + self.assert_(hasattr(self.diff_data, 'Diso')) + self.assertEqual(self.diff_data.Diso, 1/(6*1e-8)) + if __name__ == '__main__': main()