Author: bugman Date: Tue Dec 18 10:49:21 2012 New Revision: 18158 URL: http://svn.gna.org/viewcvs/relax?rev=18158&view=rev Log: Created the Selection.test_select_domain_bool_or system test. This is to better check the operation of the select.domain user function. 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=18158&r1=18157&r2=18158&view=diff ============================================================================== --- branches/frame_order_testing/test_suite/system_tests/selection.py (original) +++ branches/frame_order_testing/test_suite/system_tests/selection.py Tue Dec 18 10:49:21 2012 @@ -87,6 +87,7 @@ self.interpreter.deselect.spin(":1@C") self.interpreter.deselect.spin(":2@H") self.interpreter.deselect.spin(":2@C") + self.interpreter.deselect.spin(":3@H") # Display the sequence. self.interpreter.sequence.display() @@ -100,3 +101,26 @@ # Check the selections. selection = [False, True, True, False, True, False] + [False]*3 self.check_spin_selection(selection) + + + def test_select_domain_bool_or(self): + """Check the operation of the select.domain user function using the OR boolean.""" + + # First deselect some spins. + self.interpreter.deselect.spin(":1@C") + self.interpreter.deselect.spin(":2@H") + self.interpreter.deselect.spin(":2@C") + self.interpreter.deselect.spin(":3@H") + + # 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="OR", change_all=False) + + # Check the selections. + selection = [True]*6 + [True, True, False] + self.check_spin_selection(selection)