Author: bugman Date: Tue Mar 19 15:08:55 2013 New Revision: 18879 URL: http://svn.gna.org/viewcvs/relax?rev=18879&view=rev Log: Fixes for some unit tests of the internal structural object for the changes to the atom_loop(). Single elements are now returned as single elements rather than a tuple of length 1. Modified: trunk/test_suite/unit_tests/_generic_fns/_structure/test_internal.py Modified: trunk/test_suite/unit_tests/_generic_fns/_structure/test_internal.py URL: http://svn.gna.org/viewcvs/relax/trunk/test_suite/unit_tests/_generic_fns/_structure/test_internal.py?rev=18879&r1=18878&r2=18879&view=diff ============================================================================== --- trunk/test_suite/unit_tests/_generic_fns/_structure/test_internal.py (original) +++ trunk/test_suite/unit_tests/_generic_fns/_structure/test_internal.py Tue Mar 19 15:08:55 2013 @@ -313,7 +313,7 @@ atom_count = 0 for atom in self.data.atom_loop(atom_id=':PRO', res_name_flag=True): # Test the residue name. - self.assertEqual(atom[0], 'PRO') + self.assertEqual(atom, 'PRO') # Increment the atom count. atom_count = atom_count + 1 @@ -332,7 +332,7 @@ atom_count = 0 for spin_name in self.data.atom_loop(atom_id='@CA', atom_name_flag=True): # Test the spin name. - self.assertEqual(spin_name[0], 'CA') + self.assertEqual(spin_name, 'CA') # Increment the atom count. atom_count = atom_count + 1