mailr18155 - /branches/frame_order_testing/test_suite/system_tests/selection.py


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

Header


Content

Posted by edward on December 17, 2012 - 18:50:
Author: bugman
Date: Mon Dec 17 18:50:15 2012
New Revision: 18155

URL: http://svn.gna.org/viewcvs/relax?rev=18155&view=rev
Log:
Created the Selection.test_select_domain_bool_and system test to check the 
select.domain user function.

This user function does not exist yet.


Modified:
    branches/frame_order_testing/test_suite/system_tests/selection.py

Modified: branches/frame_order_testing/test_suite/system_tests/selection.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/frame_order_testing/test_suite/system_tests/selection.py?rev=18155&r1=18154&r2=18155&view=diff
==============================================================================
--- branches/frame_order_testing/test_suite/system_tests/selection.py 
(original)
+++ branches/frame_order_testing/test_suite/system_tests/selection.py Mon Dec 
17 18:50:15 2012
@@ -78,3 +78,25 @@
 
         # Check the data.
         self.check_spin_selection([False]*9)
+
+
+    def test_select_domain_bool_and(self):
+        """Check the operation of the select.domain user function using the 
AND boolean."""
+
+        # First deselect some spins.
+        self.interpreter.deselect.spin(":1@C")
+        self.interpreter.deselect.spin(":2@H")
+        self.interpreter.deselect.spin(":2@C")
+
+        # Display the sequence.
+        self.interpreter.sequence.display()
+
+        # Define the domain.
+        self.interpreter.domain(id='N', spin_id=":1-2")
+
+        # Select the domain.
+        self.interpreter.select.domain(domain_id='N', boolean="AND")
+
+        # Check the selections.
+        selection = [False, True, True, False, True, False] + [False]*3
+        self.check_spin_selection(selection)




Related Messages


Powered by MHonArc, Updated Tue Dec 18 10:40:01 2012