mailr18401 - in /trunk/test_suite: gui_tests/state.py shared_data/saved_states/bug_20480.bz2


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

Header


Content

Posted by edward on February 04, 2013 - 17:55:
Author: bugman
Date: Mon Feb  4 17:55:53 2013
New Revision: 18401

URL: http://svn.gna.org/viewcvs/relax?rev=18401&view=rev
Log:
Created the State.test_bug_20480 system test to catch bug #20480 
(https://gna.org/bugs/?20480).

This bug was reported by Stanislava Panova (https://gna.org/users/stacy).  
The file
test_suite/shared_data/saved_states/bug_20480.bz2 is the same as that 
attached to the bug report but
with all residues except for 9 and 10 deleted.

Currently the bug is not triggered!


Added:
    trunk/test_suite/shared_data/saved_states/bug_20480.bz2   (with props)
Modified:
    trunk/test_suite/gui_tests/state.py

Modified: trunk/test_suite/gui_tests/state.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/test_suite/gui_tests/state.py?rev=18401&r1=18400&r2=18401&view=diff
==============================================================================
--- trunk/test_suite/gui_tests/state.py (original)
+++ trunk/test_suite/gui_tests/state.py Mon Feb  4 17:55:53 2013
@@ -37,6 +37,22 @@
 
 class State(GuiTestCase):
     """Class for testing various aspects specific to saved states."""
+
+    def test_bug_20480(self):
+        """Catch bug #20480 (https://gna.org/bugs/?20480), the failure to 
load a relax state in the GUI."""
+
+        # Simulate the 'Open relax state' menu entry.
+        file = status.install_path + sep + 'test_suite' + sep + 
'shared_data' + sep + 'saved_states' + sep + 'bug_20480.bz2'
+        self.app.gui.state_load(file_name=file)
+
+        # Check that the data has been loaded.
+        self.assertEqual(cdp_name(), "aic - mf (Mon Feb  4 13:30:01 2013)")
+        self.assertEqual(cdp.frq['NOE_800'], 800000031.0)
+        self.assertEqual(cdp.frq['R1_800'], 800000031.0)
+        self.assertEqual(cdp.frq['R2_800'], 800000031.0)
+        self.assertEqual(cdp.frq['R2_600'], 599999000.0)
+        self.assertEqual(cdp.frq['R2_600'], 99999000.0)
+
 
     def test_old_state_loading(self):
         """Test the loading of an old relax 1.3 save state with GUI 
information."""

Added: trunk/test_suite/shared_data/saved_states/bug_20480.bz2
URL: 
http://svn.gna.org/viewcvs/relax/trunk/test_suite/shared_data/saved_states/bug_20480.bz2?rev=18401&view=auto
==============================================================================
Binary file - no diff available.

Propchange: trunk/test_suite/shared_data/saved_states/bug_20480.bz2
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream




Related Messages


Powered by MHonArc, Updated Mon Feb 04 18:00:01 2013