Package test_suite :: Package system_tests :: Module spectrum :: Class Spectrum
[hide private]
[frames] | no frames]

Class Spectrum

source code


TestCase class for the functional tests for the support of different spectrum intensity calculation or errors, signal to noise and plotting.

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
 
setup_signal_noise_ratio(self)
Setup intensity data.
source code
 
test_signal_noise_ratio(self)
Test calculation of signal to noise ratio.
source code
 
test_grace_int(self)
Test grace plotting function for plotting the intensities per residue.
source code
 
test_grace_sn_ratio(self)
Test grace plotting function for plotting the signal to noise ratio per residue.
source code
 
test_deselect_sn_ratio_all(self)
Test the deselect.sn_ratio for signal to noise ratios, where all ID should evaluate to True.
source code
 
test_deselect_sn_ratio_any(self)
Test the deselect.sn_ratio for signal to noise ratios, where any ID should evaluate to True.
source code
 
test_select_sn_ratio_all(self)
Test the select.sn_ratio for signal to noise ratios, where all ID should evaluate to True.
source code
 
test_select_sn_ratio_any(self)
Test the select.sn_ratio for signal to noise ratios, where any ID should evaluate to True.
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

setup_signal_noise_ratio(self)

source code 

Setup intensity data.

This uses the data from paper at http://dx.doi.org/10.1073/pnas.0509100103. This is CPMG data with a fixed relaxation time period. Experiment in 0.48 M GuHCl (guanidine hydrochloride).