Back to index

python3.2  3.2.2
Classes | Functions
email.test.test_email_torture Namespace Reference

Classes

class  TortureBase
class  TestCrispinTorture

Functions

def openfile
def _testclasses
def suite
def test_main

Function Documentation

Definition at line 117 of file test_email_torture.py.

00117 
00118 def _testclasses():
00119     mod = sys.modules[__name__]
00120     return [getattr(mod, name) for name in dir(mod) if name.startswith('Test')]
00121 

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 22 of file test_email_torture.py.

00022 
00023 def openfile(filename):
00024     from os.path import join, dirname, abspath
00025     path = abspath(join(dirname(testfile), os.pardir, 'moredata', filename))
00026     return open(path, 'r')
00027 
00028 # Prevent this test from running in the Python distro
00029 try:
    openfile('crispin-torture.txt')

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 122 of file test_email_torture.py.

00122 
00123 def suite():
00124     suite = unittest.TestSuite()
00125     for testclass in _testclasses():
00126         suite.addTest(unittest.makeSuite(testclass))
00127     return suite
00128 

Here is the call graph for this function:

Definition at line 129 of file test_email_torture.py.

00129 
00130 def test_main():
00131     for testclass in _testclasses():
00132         run_unittest(testclass)
00133 
00134 


Here is the call graph for this function: