Author: bugman
Date: Wed Jan  2 17:05:18 2008
New Revision: 4260

URL: http://svn.gna.org/viewcvs/relax?rev=4260&view=rev
Log:
Bug fix for the ten unit tests of setting the model-free parameter values for a 
given spin.

Missing brackets!


Modified:
    1.3/test_suite/unit_tests/value_testing_base.py

Modified: 1.3/test_suite/unit_tests/value_testing_base.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/test_suite/unit_tests/value_testing_base.py?rev=4260&r1=4259&r2=4260&view=diff
==============================================================================
--- 1.3/test_suite/unit_tests/value_testing_base.py (original)
+++ 1.3/test_suite/unit_tests/value_testing_base.py Wed Jan  2 17:05:18 2008
@@ -295,7 +295,7 @@
         self.value_fns.set(param='local tm', val=1e-8, spin_id=':112')
 
         # Test the parameter.
-        self.assert_(not hasattr(cdp.mol[0].res[0].spin[0], 'local_tm')
+        self.assert_(not hasattr(cdp.mol[0].res[0].spin[0], 'local_tm'))
         self.assertEqual(cdp.mol[0].res[1].spin[0].local_tm, 1e-8)
 
 
@@ -315,7 +315,7 @@
         self.value_fns.set(param='S2', val=0.8, spin_id=':112')
 
         # Test the parameter.
-        self.assert_(not hasattr(cdp.mol[0].res[0].spin[0], 's2')
+        self.assert_(not hasattr(cdp.mol[0].res[0].spin[0], 's2'))
         self.assertEqual(cdp.mol[0].res[1].spin[0].s2, 0.8)
 
 
@@ -335,7 +335,7 @@
         self.value_fns.set(param='S2f', val=0.45, spin_id=':112')
 
         # Test the parameter.
-        self.assert_(not hasattr(cdp.mol[0].res[0].spin[0], 's2f')
+        self.assert_(not hasattr(cdp.mol[0].res[0].spin[0], 's2f'))
         self.assertEqual(cdp.mol[0].res[1].spin[0].s2f, 0.45)
 
 
@@ -355,7 +355,7 @@
         self.value_fns.set(param='S2s', val=0.1, spin_id=':112')
 
         # Test the parameter.
-        self.assert_(not hasattr(cdp.mol[0].res[0].spin[0], 's2s')
+        self.assert_(not hasattr(cdp.mol[0].res[0].spin[0], 's2s'))
         self.assertEqual(cdp.mol[0].res[1].spin[0].s2s, 0.1)
 
 
@@ -375,7 +375,7 @@
         self.value_fns.set(param='te', val=12.5e-12, spin_id=':112')
 
         # Test the parameter.
-        self.assert_(not hasattr(cdp.mol[0].res[0].spin[0], 'te')
+        self.assert_(not hasattr(cdp.mol[0].res[0].spin[0], 'te'))
         self.assertEqual(cdp.mol[0].res[1].spin[0].te, 12.5e-12)
 
 
@@ -395,7 +395,7 @@
         self.value_fns.set(param='tf', val=20.1e-12, spin_id=':112')
 
         # Test the parameter.
-        self.assert_(not hasattr(cdp.mol[0].res[0].spin[0], 'tf')
+        self.assert_(not hasattr(cdp.mol[0].res[0].spin[0], 'tf'))
         self.assertEqual(cdp.mol[0].res[1].spin[0].tf, 20.1e-12)
 
 
@@ -415,7 +415,7 @@
         self.value_fns.set(param='ts', val=1.23e-9, spin_id=':112')
 
         # Test the parameter.
-        self.assert_(not hasattr(cdp.mol[0].res[0].spin[0], 'ts')
+        self.assert_(not hasattr(cdp.mol[0].res[0].spin[0], 'ts'))
         self.assertEqual(cdp.mol[0].res[1].spin[0].ts, 1.23e-9)
 
 
@@ -435,7 +435,7 @@
         self.value_fns.set(param='Rex', val=2.34, spin_id=':112')
 
         # Test the parameter.
-        self.assert_(not hasattr(cdp.mol[0].res[0].spin[0], 'rex')
+        self.assert_(not hasattr(cdp.mol[0].res[0].spin[0], 'rex'))
         self.assertEqual(cdp.mol[0].res[1].spin[0].rex, 2.34)
 
 
@@ -455,7 +455,7 @@
         self.value_fns.set(param='Bond length', val=1.02e-10, spin_id=':112')
 
         # Test the parameter.
-        self.assert_(not hasattr(cdp.mol[0].res[0].spin[0], 'r')
+        self.assert_(not hasattr(cdp.mol[0].res[0].spin[0], 'r'))
         self.assertEqual(cdp.mol[0].res[1].spin[0].r, 1.02e-10)
 
 
@@ -475,5 +475,5 @@
         self.value_fns.set(param='CSA', val=-172e-6, spin_id=':112')
 
         # Test the parameter.
-        self.assert_(not hasattr(cdp.mol[0].res[0].spin[0], 'csa')
+        self.assert_(not hasattr(cdp.mol[0].res[0].spin[0], 'csa'))
         self.assertEqual(cdp.mol[0].res[1].spin[0].csa, -172e-6)


_______________________________________________
relax (http://nmr-relax.com)

This is the relax-commits mailing list
relax-commits@gna.org

To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits

Reply via email to