mailr26043 - /trunk/test_suite/system_tests/bmrb.py


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

Header


Content

Posted by edward on September 26, 2014 - 09:37:
Author: bugman
Date: Fri Sep 26 09:37:41 2014
New Revision: 26043

URL: http://svn.gna.org/viewcvs/relax?rev=26043&view=rev
Log:
Created the Bmrb.test_bug_22703_display_empty system and GUI test.

This system test catches bug #22703 (https://gna.org/bugs/?22703), the 
failure of the bmrb.display
user function with an AttributeError when no data is present.

It is simultaneously a system and GUI test, as the GUI test class inherits 
directly from the system
test class.


Modified:
    trunk/test_suite/system_tests/bmrb.py

Modified: trunk/test_suite/system_tests/bmrb.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/test_suite/system_tests/bmrb.py?rev=26043&r1=26042&r2=26043&view=diff
==============================================================================
--- trunk/test_suite/system_tests/bmrb.py       (original)
+++ trunk/test_suite/system_tests/bmrb.py       Fri Sep 26 09:37:41 2014
@@ -253,6 +253,23 @@
         self.assertRaises(RelaxError, self.interpreter.bmrb.read, 
file='17226.txt', dir=path, version=None, sample_conditions=None)
 
 
+    def test_bug_22703_display_empty(self):
+        """Catch U{bug #22703<https://gna.org/bugs/?22703>}, the failure of 
the bmrb.display user function with an AttributeError when no data is 
present."""
+
+        # Create the data pipe.
+        self.interpreter.pipe.create('test', 'mf')
+
+        # Display.
+        self.interpreter.bmrb.display(version='3.1')
+
+        # Reset and create a new data pipe.
+        self.interpreter.reset()
+        self.interpreter.pipe.create('test2', 'mf')
+
+        # Display again to show a GUI breakage.
+        self.interpreter.bmrb.display(version='3.1')
+
+
     def test_rw_bmrb_3_0_model_free(self):
         """Write and then read a BRMB STAR formatted file containing 
model-free results."""
 




Related Messages


Powered by MHonArc, Updated Fri Sep 26 10:00:03 2014