Back to index

python3.2  3.2.2
Classes | Functions | Variables
test.test_quopri Namespace Reference

Classes

class  QuopriTestCase

Functions

def withpythonimplementation
def test_main

Variables

string ENCSAMPLE
string DECSAMPLE = "Here's a bunch of special \n"

Function Documentation

Definition at line 203 of file test_quopri.py.

00203 
00204 def test_main():
00205     support.run_unittest(QuopriTestCase)
00206 

Definition at line 47 of file test_quopri.py.

00047 
00048 def withpythonimplementation(testfunc):
00049     def newtest(self):
00050         # Test default implementation
00051         testfunc(self)
00052         # Test Python implementation
00053         if quopri.b2a_qp is not None or quopri.a2b_qp is not None:
00054             oldencode = quopri.b2a_qp
00055             olddecode = quopri.a2b_qp
00056             try:
00057                 quopri.b2a_qp = None
00058                 quopri.a2b_qp = None
00059                 testfunc(self)
00060             finally:
00061                 quopri.b2a_qp = oldencode
00062                 quopri.a2b_qp = olddecode
00063     newtest.__name__ = testfunc.__name__
00064     return newtest

Here is the call graph for this function:


Variable Documentation

string test.test_quopri.DECSAMPLE = "Here's a bunch of special \n"

Definition at line 28 of file test_quopri.py.

Initial value:
00001 """\
00002 Here's a bunch of special=20
00003 
00004 =A1=A2=A3=A4=A5=A6=A7=A8=A9
00005 =AA=AB=AC=AD=AE=AF=B0=B1=B2=B3
00006 =B4=B5=B6=B7=B8=B9=BA=BB=BC=BD=BE
00007 =BF=C0=C1=C2=C3=C4=C5=C6
00008 =C7=C8=C9=CA=CB=CC=CD=CE=CF
00009 =D0=D1=D2=D3=D4=D5=D6=D7
00010 =D8=D9=DA=DB=DC=DD=DE=DF
00011 =E0=E1=E2=E3=E4=E5=E6=E7
00012 =E8=E9=EA=EB=EC=ED=EE=EF
00013 =F0=F1=F2=F3=F4=F5=F6=F7
00014 =F8=F9=FA=FB=FC=FD=FE=FF
00015 
00016 characters... have fun!
00017 """

Definition at line 9 of file test_quopri.py.