Back to index

python-biopython  1.60
Classes | Functions | Variables
test_psw Namespace Reference

Classes

class  TestPSW

Functions

def run_tests
def testing_suite

Variables

string __version__ = "$Revision: 1.6 $"
tuple unittest_suite = unittest.TestLoader()
tuple doctest_suite = doctest.DocTestSuite(psw)
tuple suite = unittest.TestSuite((unittest_suite, doctest_suite))
tuple runner = unittest.TextTestRunner(sys.stdout, verbosity = 2)

Function Documentation

def test_psw.run_tests (   argv)

Definition at line 89 of file test_psw.py.

00089 
00090 def run_tests(argv):
00091     test_suite = testing_suite()
00092     runner = unittest.TextTestRunner(sys.stdout, verbosity = 2)
00093     runner.run(test_suite)

Here is the call graph for this function:

Generate the suite of tests.

Definition at line 94 of file test_psw.py.

00094 
00095 def testing_suite():
00096     """Generate the suite of tests.
00097     """
00098     unittest_suite = unittest.TestSuite()
00099 
00100     test_loader = unittest.TestLoader()
00101     test_loader.testMethodPrefix = 'test_'
00102     tests = [TestPSW]
00103     
00104     for test in tests:
00105         cur_suite = test_loader.loadTestsFromTestCase(test)
00106         unittest_suite.addTest(cur_suite)
00107 
00108     doctest_suite = doctest.DocTestSuite(psw)
00109 
00110     big_suite = unittest.TestSuite((unittest_suite, doctest_suite))
00111 
00112     return big_suite

Here is the caller graph for this function:


Variable Documentation

string test_psw.__version__ = "$Revision: 1.6 $"

Definition at line 6 of file test_psw.py.

tuple test_psw.doctest_suite = doctest.DocTestSuite(psw)

Definition at line 115 of file test_psw.py.

tuple test_psw.runner = unittest.TextTestRunner(sys.stdout, verbosity = 2)

Definition at line 117 of file test_psw.py.

tuple test_psw.suite = unittest.TestSuite((unittest_suite, doctest_suite))

Definition at line 116 of file test_psw.py.

tuple test_psw.unittest_suite = unittest.TestLoader()

Definition at line 114 of file test_psw.py.