Back to index

python3.2  3.2.2
Public Member Functions
test.test_os.FSEncodingTests Class Reference

List of all members.

Public Member Functions

def test_nop
def test_identity

Detailed Description

Definition at line 1187 of file

Member Function Documentation

Definition at line 1192 of file

01193     def test_identity(self):
01194         # assert fsdecode(fsencode(x)) == x
01195         for fn in ('unicode\u0141', 'latin\xe9', 'ascii'):
01196             try:
01197                 bytesfn = os.fsencode(fn)
01198             except UnicodeEncodeError:
01199                 continue
01200             self.assertEqual(os.fsdecode(bytesfn), fn)

Here is the call graph for this function:

Definition at line 1188 of file

01189     def test_nop(self):
01190         self.assertEqual(os.fsencode(b'abc\xff'), b'abc\xff')
01191         self.assertEqual(os.fsdecode('abc\u0141'), 'abc\u0141')

Here is the call graph for this function:

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