Author: bugman
Date: Thu Oct 23 12:00:29 2014
New Revision: 26373

URL: http://svn.gna.org/viewcvs/relax?rev=26373&view=rev
Log:
Modified the Structure.test_bug_22860_CoM_after_deletion system test to expect 
a RelaxNoPdbError.

This tests that the structure.com user function raises RelaxNoPdbError after 
deleting all of the
structural information from the current data pipe.


Modified:
    trunk/test_suite/system_tests/structure.py

Modified: trunk/test_suite/system_tests/structure.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/test_suite/system_tests/structure.py?rev=26373&r1=26372&r2=26373&view=diff
==============================================================================
--- trunk/test_suite/system_tests/structure.py  (original)
+++ trunk/test_suite/system_tests/structure.py  Thu Oct 23 12:00:29 2014
@@ -31,7 +31,7 @@
 from data_store import Relax_data_store; ds = Relax_data_store()
 from pipe_control.mol_res_spin import count_spins, return_spin, spin_loop
 from lib.geometry.rotations import axis_angle_to_R, euler_to_R_zyz
-from lib.errors import RelaxError
+from lib.errors import RelaxError, RelaxNoPdbError
 from lib.io import DummyFileObject
 from status import Status; status = Status()
 from test_suite.system_tests.base_classes import SystemTestCase
@@ -376,7 +376,7 @@
         self.interpreter.structure.delete()
 
         # CoM.
-        self.interpreter.structure.com()
+        self.assertRaises(RelaxNoPdbError, self.interpreter.structure.com)
 
 
     def test_collapse_ensemble(self):


_______________________________________________
relax (http://www.nmr-relax.com)

This is the relax-commits mailing list
[email protected]

To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits

Reply via email to