Author: bugman Date: Wed Sep 24 23:20:14 2008 New Revision: 7289 URL: http://svn.gna.org/viewcvs/relax?rev=7289&view=rev Log: Created the test_Selection_contains_spin8() unit test. Modified: 1.3/test_suite/unit_tests/_generic_fns/test_mol_res_spin.py Modified: 1.3/test_suite/unit_tests/_generic_fns/test_mol_res_spin.py URL: http://svn.gna.org/viewcvs/relax/1.3/test_suite/unit_tests/_generic_fns/test_mol_res_spin.py?rev=7289&r1=7288&r2=7289&view=diff ============================================================================== --- 1.3/test_suite/unit_tests/_generic_fns/test_mol_res_spin.py (original) +++ 1.3/test_suite/unit_tests/_generic_fns/test_mol_res_spin.py Wed Sep 24 23:20:14 2008 @@ -410,6 +410,16 @@ self.assert_(not obj.contains_spin(mol='RNA')) + def test_Selection_contains_spin8(self): + """The Selection object ":9&:Gln@N" contains the spin 'N' of residue 9 Gln.""" + + # The Selection object. + obj = mol_res_spin.Selection(":9&:Gln@N") + + # Check if the molecule is in the selection. + self.assert_(obj.contains_spin(spin_name='N', res_name='Gln', res_num='9')) + + def test_Selection_contains_spin_re1(self): """The Selection object "#Ap4Aase:Glu | #RNA@C8" contains the spin 'C*' of the mol 'RNA'."""