mailr15133 - /branches/frame_order_testing/test_suite/unit_tests/_generic_fns/_structure/test_scientific.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on January 03, 2012 - 16:51:
Author: bugman
Date: Tue Jan  3 16:51:51 2012
New Revision: 15133

URL: http://svn.gna.org/viewcvs/relax?rev=15133&view=rev
Log:
Updated the test_atom_loop_spin_selection2() unit test for the redefined 
atom_loop() method.


Modified:
    
branches/frame_order_testing/test_suite/unit_tests/_generic_fns/_structure/test_scientific.py

Modified: 
branches/frame_order_testing/test_suite/unit_tests/_generic_fns/_structure/test_scientific.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/frame_order_testing/test_suite/unit_tests/_generic_fns/_structure/test_scientific.py?rev=15133&r1=15132&r2=15133&view=diff
==============================================================================
--- 
branches/frame_order_testing/test_suite/unit_tests/_generic_fns/_structure/test_scientific.py
 (original)
+++ 
branches/frame_order_testing/test_suite/unit_tests/_generic_fns/_structure/test_scientific.py
 Tue Jan  3 16:51:51 2012
@@ -1,6 +1,6 @@
 
###############################################################################
 #                                                                            
 #
-# Copyright (C) 2008-2011 Edward d'Auvergne                                  
 #
+# Copyright (C) 2008-2012 Edward d'Auvergne                                  
 #
 #                                                                            
 #
 # This file is part of the program relax.                                    
 #
 #                                                                            
 #
@@ -240,9 +240,10 @@
             self.assertEqual(spin_num, 163)
             self.assertEqual(spin_name, 'OE1')
             self.assertEqual(element, 'O')
-            self.assertEqual(pos[0], float('10.055'))
-            self.assertEqual(pos[1], float('-2.74'))
-            self.assertEqual(pos[2], float('-13.193'))
+            self.assertEqual(len(pos), 1)
+            self.assertEqual(pos[0, 0], float('10.055'))
+            self.assertEqual(pos[0, 1], float('-2.74'))
+            self.assertEqual(pos[0, 2], float('-13.193'))
 
             # Increment the atom count.
             atom_count = atom_count + 1




Related Messages


Powered by MHonArc, Updated Tue Jan 03 18:00:02 2012