Author: bugman Date: Sun Apr 20 20:41:53 2008 New Revision: 5875 URL: http://svn.gna.org/viewcvs/relax?rev=5875&view=rev Log: Added another unit test of the Selection.contains_res() method. 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=5875&r1=5874&r2=5875&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 20:41:53 2008 @@ -290,6 +290,16 @@ self.assert_(obj.contains_res()) + def test_Selection_contains_res7(self): + """The Selection object "#Ap4Aase" does not contain the res None of the mol 'RNA'.""" + + # The Selection object. + obj = selection.Selection("#Ap4Aase") + + # Check if the molecule is in the selection. + self.assert_(obj.contains_res(mol='RNA')) + + def test_Selection_full_spin_id(self): """Test the Selection object for the single spin identifier '#Ap4Aase:2&:Glu@63&@NH'."""