Back to index

python3.2  3.2.2
Public Member Functions
test.test_codecs.EncodedFileTest Class Reference

List of all members.

Public Member Functions

def test_basic

Detailed Description

Definition at line 1257 of file

Member Function Documentation

Definition at line 1259 of file

01260     def test_basic(self):
01261         f = io.BytesIO(b'\xed\x95\x9c\n\xea\xb8\x80')
01262         ef = codecs.EncodedFile(f, 'utf-16-le', 'utf-8')
01263         self.assertEqual(, b'\\\xd5\n\x00\x00\xae')
01265         f = io.BytesIO()
01266         ef = codecs.EncodedFile(f, 'utf-8', 'latin1')
01267         ef.write(b'\xc3\xbc')
01268         self.assertEqual(f.getvalue(), b'\xfc')

Here is the call graph for this function:

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