Author: bugman Date: Tue Feb 17 09:31:42 2015 New Revision: 27655 URL: http://svn.gna.org/viewcvs/relax?rev=27655&view=rev Log: Created the Structure.test_read_merge_simultaneous system test. This is to demonstrate a failure in the structure.read_pdb user function when merging multiple molecules from one file into one molecule simultaneously with a single user function call. 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=27655&r1=27654&r2=27655&view=diff ============================================================================== --- trunk/test_suite/system_tests/structure.py (original) +++ trunk/test_suite/system_tests/structure.py Tue Feb 17 09:31:42 2015 @@ -4025,6 +4025,19 @@ cdp.structure.validate_models() + def test_read_merge_simultaneous(self): + """Test the simultaneous merging of two molecules into one.""" + + # Path of the files. + path = status.install_path + sep+'test_suite'+sep+'shared_data'+sep+'structures' + + # Read the PDB files. + self.interpreter.structure.read_pdb(file='2BE6_core_I_IV.pdb', dir=path, read_mol=[1, 3], set_mol_name='CaM A') + + # Check that everything is ok. + cdp.structure.validate_models() + + def test_read_not_pdb(self): """Test the reading of a file by structure.read_pdb that is not a PDB."""