Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
test.test_codecs.StreamReaderTest Class Reference

List of all members.

Public Member Functions

def setUp
def test_readlines

Public Attributes

 reader
 stream

Detailed Description

Definition at line 1247 of file test_codecs.py.


Member Function Documentation

Definition at line 1249 of file test_codecs.py.

01249 
01250     def setUp(self):
01251         self.reader = codecs.getreader('utf-8')
01252         self.stream = io.BytesIO(b'\xed\x95\x9c\n\xea\xb8\x80')

Here is the caller graph for this function:

Definition at line 1253 of file test_codecs.py.

01253 
01254     def test_readlines(self):
01255         f = self.reader(self.stream)
01256         self.assertEqual(f.readlines(), ['\ud55c\n', '\uae00'])

Here is the call graph for this function:


Member Data Documentation

Definition at line 1250 of file test_codecs.py.

Definition at line 1251 of file test_codecs.py.


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