mailr5879 - /1.3/test_suite/unit_tests/_generic_fns/test_selection.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on April 20, 2008 - 22:08:
Author: bugman
Date: Sun Apr 20 22:08:00 2008
New Revision: 5879

URL: http://svn.gna.org/viewcvs/relax?rev=5879&view=rev
Log:
Fixes for all the unit tests 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=5879&r1=5878&r2=5879&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 
22:08:00 2008
@@ -231,13 +231,13 @@
 
 
     def test_Selection_contains_res1(self):
-        """The Selection object "#Ap4Aase:Glu | #RNA@C8" contains the res 
'Glu'."""
+        """The Selection object "#Ap4Aase:Glu | #RNA@C8" does not contain 
the res 'Glu' (without the mol name)."""
 
         # The Selection object.
         obj = selection.Selection("#Ap4Aase:Glu | #RNA@C8")
 
         # Check if the molecule is in the selection.
-        self.assert_(obj.contains_res('Glu'))
+        self.assert_(not obj.contains_res(res_name='Glu'))
 
 
     def test_Selection_contains_res2(self):
@@ -247,7 +247,7 @@
         obj = selection.Selection("#Ap4Aase:Glu | #RNA@C8")
 
         # Check if the molecule is in the selection.
-        self.assert_(obj.contains_res('Glu', 'Ap4Aase'))
+        self.assert_(obj.contains_res(res_name='Glu', mol='Ap4Aase'))
 
 
     def test_Selection_contains_res3(self):
@@ -257,7 +257,7 @@
         obj = selection.Selection("#Ap4Aase:Glu & #RNA@C8")
 
         # Check if the molecule is in the selection.
-        self.assert_(not obj.contains_res('Glu'))
+        self.assert_(not obj.contains_res(res_name='Glu'))
 
 
     def test_Selection_contains_res4(self):
@@ -267,7 +267,7 @@
         obj = selection.Selection("#Ap4Aase:Glu | #RNA@C8")
 
         # Check if the molecule is in the selection.
-        self.assert_(not obj.contains_res('Ala'))
+        self.assert_(not obj.contains_res(res_name='Ala'))
 
 
     def test_Selection_contains_res5(self):
@@ -287,7 +287,7 @@
         obj = selection.Selection("#Ap4Aase")
 
         # Check if the molecule is in the selection.
-        self.assert_(obj.contains_res())
+        self.assert_(obj.contains_res(mol='Ap4Aase'))
 
 
     def test_Selection_contains_res7(self):
@@ -297,7 +297,7 @@
         obj = selection.Selection("#Ap4Aase")
 
         # Check if the molecule is in the selection.
-        self.assert_(obj.contains_res(mol='RNA'))
+        self.assert_(not obj.contains_res(mol='RNA'))
 
 
     def test_Selection_full_spin_id(self):




Related Messages


Powered by MHonArc, Updated Sun Apr 20 22:20:10 2008