Author: bugman Date: Wed Feb 4 10:51:40 2009 New Revision: 8727 URL: http://svn.gna.org/viewcvs/relax?rev=8727&view=rev Log: Fixes for the test_read_pdb_mol_2_model_scientific() system test. The Scientific python PDB reader somehow decided to split the single structures in 'lactose_MCMM4_S1_*.pdb' into 2. Modified: 1.3/test_suite/system_tests/structure.py Modified: 1.3/test_suite/system_tests/structure.py URL: http://svn.gna.org/viewcvs/relax/1.3/test_suite/system_tests/structure.py?rev=8727&r1=8726&r2=8727&view=diff ============================================================================== --- 1.3/test_suite/system_tests/structure.py (original) +++ 1.3/test_suite/system_tests/structure.py Wed Feb 4 10:51:40 2009 @@ -523,14 +523,14 @@ self.assert_(hasattr(cdp, 'structure')) self.assert_(hasattr(cdp.structure, 'structural_data')) self.assertEqual(len(cdp.structure.structural_data), 1) - self.assertEqual(len(cdp.structure.structural_data[0].mol), 3) + self.assertEqual(len(cdp.structure.structural_data[0].mol), 6) i = 0 for mol in cdp.structure.structural_data[0].mol: - self.assertEqual(mol.file_name, files[i]) + self.assertEqual(mol.file_name, files[i/2]) self.assertEqual(mol.file_path, path) self.assertEqual(mol.file_model, 1) - self.assertEqual(mol.file_mol_num, 1) + self.assertEqual(mol.file_mol_num, i%2+1) # Odd i, num=1, even i, num=2. i = i + 1