Author: bugman Date: Sun Apr 20 17:13:56 2008 New Revision: 5849 URL: http://svn.gna.org/viewcvs/relax?rev=5849&view=rev Log: Improved the test_Selection_full_spin_id() unit test to test all spins. 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=5849&r1=5848&r2=5849&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 Sun Apr 20 17:13:56 2008 @@ -189,13 +189,14 @@ # Alias the current data pipe. cdp = relax_data_store[relax_data_store.current_pipe] - # The molecule, residue, and spin container for that spin. - mol = cdp.mol[0] - res = mol[1] - spin = res[0] - - # Test that the spin is in the selection. - self.assert_((mol, res, spin) in obj) + # Test if various spins are in the selection. + self.assert_((cdp.mol[0], cdp.mol[0].res[0], cdp.mol[0].res[0].spin[0]) not in obj) + self.assert_((cdp.mol[0], cdp.mol[0].res[1], cdp.mol[0].res[1].spin[0]) in obj) + self.assert_((cdp.mol[0], cdp.mol[0].res[2], cdp.mol[0].res[2].spin[0]) not in obj) + self.assert_((cdp.mol[1], cdp.mol[1].res[0], cdp.mol[1].res[0].spin[0]) not in obj) + self.assert_((cdp.mol[1], cdp.mol[1].res[0], cdp.mol[1].res[0].spin[1]) not in obj) + self.assert_((cdp.mol[1], cdp.mol[1].res[1], cdp.mol[1].res[1].spin[0]) not in obj) + self.assert_((cdp.mol[1], cdp.mol[1].res[1], cdp.mol[1].res[1].spin[1]) not in obj) def test_count_spins(self):