Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
test.test_uu.UUStdIOTest Class Reference

List of all members.

Public Member Functions

def setUp
def tearDown
def test_encode
def test_decode

Public Attributes

 stdin
 stdout

Detailed Description

Definition at line 96 of file test_uu.py.


Member Function Documentation

Definition at line 98 of file test_uu.py.

00098 
00099     def setUp(self):
00100         self.stdin = sys.stdin
00101         self.stdout = sys.stdout

Here is the caller graph for this function:

Definition at line 102 of file test_uu.py.

00102 
00103     def tearDown(self):
00104         sys.stdin = self.stdin
00105         sys.stdout = self.stdout

Here is the caller graph for this function:

Definition at line 113 of file test_uu.py.

00113 
00114     def test_decode(self):
00115         sys.stdin = FakeIO(encodedtextwrapped(0o666, "t1").decode("ascii"))
00116         sys.stdout = FakeIO()
00117         uu.decode("-", "-")
00118         stdout = sys.stdout
00119         sys.stdout = self.stdout
00120         sys.stdin = self.stdin
00121         self.assertEqual(stdout.getvalue(), plaintext.decode("ascii"))

Here is the call graph for this function:

Definition at line 106 of file test_uu.py.

00106 
00107     def test_encode(self):
00108         sys.stdin = FakeIO(plaintext.decode("ascii"))
00109         sys.stdout = FakeIO()
00110         uu.encode("-", "-", "t1", 0o666)
00111         self.assertEqual(sys.stdout.getvalue(),
00112                          encodedtextwrapped(0o666, "t1").decode("ascii"))

Here is the call graph for this function:


Member Data Documentation

Definition at line 99 of file test_uu.py.

Definition at line 100 of file test_uu.py.


The documentation for this class was generated from the following file: