Author: bugman Date: Wed Nov 28 11:14:03 2007 New Revision: 4104 URL: http://svn.gna.org/viewcvs/relax?rev=4104&view=rev Log: Added another unit test for generic_fns.selection.generate_spin_id(). Modified: 1.3/test_suite/unit_tests/_generic_fns/test_selection.py Modified: 1.3/test_suite/unit_tests/_generic_fns/test_selection.py URL: http://svn.gna.org/viewcvs/relax/1.3/test_suite/unit_tests/_generic_fns/test_selection.py?rev=4104&r1=4103&r2=4104&view=diff ============================================================================== --- 1.3/test_suite/unit_tests/_generic_fns/test_selection.py (original) +++ 1.3/test_suite/unit_tests/_generic_fns/test_selection.py Wed Nov 28 11:14:03 2007 @@ -334,6 +334,22 @@ self.assertEqual(id, '#Ap4Aase:1&:GLY@234&@NH') + def test_generate_spin_id6(self): + """Sixth test of the spin ID generation function. + + The function tested is generic_fns.selection.generate_spin_id(). + """ + + # The data. + data = ['1', 'GLY', None, None] + + # The ID. + id = selection.generate_spin_id(data) + + # Test the string. + self.assertEqual(id, ':1&:GLY') + + def test_molecule_loop(self): """Test the proper operation of the molecule loop with molecule selection.