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]
 
__init__(self, methodName='runTest')
Skip scientific Python tests if not installed.
source code
 
setUp(self)
Set up for all the functional tests.
source code
 
test_displacement(self)
Test of the structure.displacement user function.
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_load_scientific_results(self)
Load the PDB file using the information in a results file (using the Scientific python structural object).
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_scientific1(self)
Load the '1F35_N_H_molmol.pdb' PDB file (using the Scientific python structural object PDB reader).
source code
 
test_read_pdb_scientific2(self)
Load the 'Ap4Aase_res1-12.pdb' PDB file (using the Scientific python structural object PDB reader).
source code
 
test_read_pdb_scientific3(self)
Load the 'gromacs.pdb' PDB file (using the Scientific python structural object PDB reader).
source code
 
test_read_pdb_scientific4(self)
Load the 'tylers_peptide_trunc.pdb' PDB file (using the Scientific python structural object PDB reader).
source code
 
test_read_pdb_scientific5(self)
Load the 'lactose_MCMM4_S1_1.pdb' PDB file (using the Scientific python structural object PDB reader).
source code
 
test_read_pdb_scientific6(self)
Load the 'lactose_MCMM4_S1_1.pdb' and 'lactose_MCMM4_S1_2.pdb' PDB files as 2 separate structures (using the Scientific python structural object PDB reader).
source code
 
test_read_pdb_scientific7(self)
Load the 'lactose_MCMM4_S1_1.pdb' PDB file twice as 2 separate structures (using the Scientific python structural object PDB reader).
source code
 
test_read_pdb_mol_2_model_scientific(self)
Load a few 'lactose_MCMM4_S1_*.pdb' PDB files as models (using the Scientific python structural object PDB reader).
source code
 
test_read_pdb_model_2_mol_scientific(self)
Load the 2 models of the 'gromacs.pdb' PDB file as separate molecules of the same model (using the Scientific python structural object PDB reader).
source code
 
test_read_pdb_complex_scientific(self)
Test the packing of models and molecules using 'gromacs.pdb' and 'lactose_MCMM4_S1_*.pdb' (using the Scientific python structural object PDB reader).
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_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

Inherited from base_classes.SystemTestCase: 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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, methodName='runTest')
(Constructor)

source code 

Skip scientific Python tests if not installed.

Parameters:
  • methodName (str) - The name of the test.
Overrides: object.__init__

setUp(self)

source code 

Set up for all the functional tests.

Overrides: unittest.case.TestCase.setUp