Package test_suite :: Package system_tests :: Module structure :: Class Structure
[hide private]
[frames] | no frames]

Class Structure

source code


Class for testing the structural objects.

Nested Classes [hide private]

Inherited from unittest.case.TestCase: failureException

Instance Methods [hide private]
 
setUp(self)
Set up for all the functional tests.
source code
 
test_alt_loc_missing(self)
Test that a RelaxError occurs when the alternate location indicator is present but not specified.
source code
 
test_bug_sr_2998_broken_conect_records(self)
Test the bug reported as the support request #2998, the broken CONECT records.
source code
 
test_bug_20470_alternate_location_indicator(self)
Catch bug #20470, the alternate location indicator problem.
source code
 
test_bug_21187_corrupted_pdb(self)
Catch bug #21187, the corrupted PDB with all proton atoms numbers set to zero.
source code
 
test_bug_21522_master_record_atom_count(self)
Catch bug #21522, the structure.write_pdb user function creating an incorrect MASTER record.
source code
 
test_delete_empty(self)
Test the deletion of non-existent structural data.
source code
 
test_delete_multi_pipe(self)
Test the deletion of structural data in only one pipe.
source code
 
test_displacement(self)
Test of the structure.displacement user function.
source code
 
test_load_spins_mol_cat(self)
Test the loading of spins from different molecules into one molecule container.
source code
 
test_load_internal_results(self)
Load the PDB file using the information in a results file (using the internal structural object).
source code
 
test_load_internal_results2(self)
Load the PDB file using the information in a results file (using the internal structural object).
source code
 
test_metadata_xml(self)
Test the storage and loading of metadata into an XML state file.
source code
 
test_read_gaussian_strychnine(self)
Load the structure from the 'strychnine_opt_cdcl3_b3lyp_gaussian.log.bz2' compressed Gaussian log file.
source code
 
test_read_merge(self)
Test the merging of two molecules into one.
source code
 
test_read_not_pdb(self)
Test the reading of a file by structure.read_pdb that is not a PDB.
source code
 
test_read_pdb_internal1(self)
Load the '1F35_N_H_molmol.pdb' PDB file (using the internal structural object PDB reader).
source code
 
test_read_pdb_internal2(self)
Load the 'Ap4Aase_res1-12.pdb' PDB file (using the internal structural object PDB reader).
source code
 
test_read_pdb_internal3(self)
Load the 'gromacs.pdb' PDB file (using the internal structural object PDB reader).
source code
 
test_read_pdb_internal4(self)
Load the 'tylers_peptide_trunc.pdb' PDB file (using the internal structural object PDB reader).
source code
 
test_read_pdb_internal5(self)
Load the 'lactose_MCMM4_S1_1.pdb' PDB file (using the internal structural object PDB reader).
source code
 
test_read_pdb_internal6(self)
Load the 'lactose_MCMM4_S1_1.pdb' and 'lactose_MCMM4_S1_2.pdb' PDB files as 2 separate structures (using the internal structural object PDB reader).
source code
 
test_read_pdb_internal7(self)
Load the 'lactose_MCMM4_S1_1.pdb' PDB file twice as 2 separate structures (using the internal structural object PDB reader).
source code
 
test_read_pdb_mol_2_model_internal(self)
Load a few 'lactose_MCMM4_S1_*.pdb' PDB files as models (using the internal structural object PDB reader).
source code
 
test_read_pdb_model_2_mol_internal(self)
Load the 2 models of the 'gromacs.pdb' PDB file as separate molecules of the same model (using the internal structural object PDB reader).
source code
 
test_read_pdb_complex_internal(self)
Test the packing of models and molecules using 'gromacs.pdb' and 'lactose_MCMM4_S1_*.pdb' (using the internal structural object PDB reader).
source code
 
test_read_pdb_1UBQ(self)
Test the reading of the complete 1UBQ PDB file.
source code
 
test_read_write_pdb_1UBQ(self)
Test the reading and writing of the 1UBQ PDB file.
source code
 
test_read_xyz_internal1(self)
Load the 'Indol_test.xyz' XYZ file (using the internal structural object XYZ reader).
source code
 
test_read_xyz_internal2(self)
Load the 'SSS-cluster4-new-test.xyz' XYZ file (using the internal structural object XYZ reader).
source code
 
test_read_xyz_strychnine(self)
Load the 'strychnine.xyz' XYZ file (using the internal structural object XYZ reader).
source code
 
test_rmsd(self)
Test the structure.rmsd user function.
source code
 
test_rmsd_ubi(self)
Test the structure.rmsd user function on the truncated ubiquitin ensemble.
source code
 
test_superimpose_fit_to_first(self)
Test of the structure.superimpose user function, fitting to the first structure.
source code
 
test_superimpose_fit_to_mean(self)
Test of the structure.superimpose user function, fitting to the mean structure.
source code
 
test_superimpose_fit_to_mean2(self)
Second test of the structure.superimpose user function, fitting to the mean structure.
source code
 
test_web_of_motion_12(self)
Check the operation of the structure.web_of_motion user function using structural models 1 and 2 (of 3).
source code
 
test_web_of_motion_13(self)
Check the operation of the structure.web_of_motion user function using structural models 1 and 3 (of 3).
source code
 
test_web_of_motion_all(self)
Check the operation of the structure.web_of_motion user function using all structural models.
source code

Inherited from base_classes.SystemTestCase: __init__, script_exec, tearDown

Inherited from unittest.case.TestCase: __call__, __eq__, __hash__, __ne__, __repr__, __str__, addCleanup, addTypeEqualityFunc, assertAlmostEqual, assertAlmostEquals, assertDictContainsSubset, assertDictEqual, assertEqual, assertEquals, assertFalse, assertGreater, assertGreaterEqual, assertIn, assertIs, assertIsInstance, assertIsNone, assertIsNot, assertIsNotNone, assertItemsEqual, assertLess, assertLessEqual, assertListEqual, assertMultiLineEqual, assertNotAlmostEqual, assertNotAlmostEquals, assertNotEqual, assertNotEquals, assertNotIn, assertNotIsInstance, assertNotRegexpMatches, assertRaises, assertRaisesRegexp, assertRegexpMatches, assertSequenceEqual, assertSetEqual, assertTrue, assertTupleEqual, assert_, countTestCases, debug, defaultTestResult, doCleanups, fail, failIf, failIfAlmostEqual, failIfEqual, failUnless, failUnlessAlmostEqual, failUnlessEqual, failUnlessRaises, id, run, shortDescription, skipTest

Inherited from unittest.case.TestCase (private): _addSkip, _baseAssertEqual, _deprecate, _formatMessage, _getAssertEqualityFunc, _truncateMessage

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Methods [hide private]

Inherited from unittest.case.TestCase: setUpClass, tearDownClass

Class Variables [hide private]

Inherited from unittest.case.TestCase: longMessage, maxDiff

Inherited from unittest.case.TestCase (private): _classSetupFailed, _diffThreshold

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

setUp(self)

source code 

Set up for all the functional tests.

Overrides: unittest.case.TestCase.setUp

test_bug_21522_master_record_atom_count(self)

source code 

Catch bug #21522, the structure.write_pdb user function creating an incorrect MASTER record.

This also triggers bug #21520, the failure of the structure.write_pdb user function when creating the MASTER record due to too many ATOM and HETATM records being present.