Back to index

python3.2  3.2.2
Public Member Functions
test.test_charmapcodec.CharmapCodecTest Class Reference

List of all members.

Public Member Functions

def test_constructorx
def test_encodex
def test_constructory
def test_maptoundefined

Detailed Description

Definition at line 28 of file test_charmapcodec.py.


Member Function Documentation

Definition at line 29 of file test_charmapcodec.py.

00029 
00030     def test_constructorx(self):
00031         self.assertEqual(str(b'abc', codecname), 'abc')
00032         self.assertEqual(str(b'xdef', codecname), 'abcdef')
00033         self.assertEqual(str(b'defx', codecname), 'defabc')
00034         self.assertEqual(str(b'dxf', codecname), 'dabcf')
00035         self.assertEqual(str(b'dxfx', codecname), 'dabcfabc')

Here is the call graph for this function:

Definition at line 43 of file test_charmapcodec.py.

00043 
00044     def test_constructory(self):
00045         self.assertEqual(str(b'ydef', codecname), 'def')
00046         self.assertEqual(str(b'defy', codecname), 'def')
00047         self.assertEqual(str(b'dyf', codecname), 'df')
00048         self.assertEqual(str(b'dyfy', codecname), 'df')

Here is the call graph for this function:

Definition at line 36 of file test_charmapcodec.py.

00036 
00037     def test_encodex(self):
00038         self.assertEqual('abc'.encode(codecname), b'abc')
00039         self.assertEqual('xdef'.encode(codecname), b'abcdef')
00040         self.assertEqual('defx'.encode(codecname), b'defabc')
00041         self.assertEqual('dxf'.encode(codecname), b'dabcf')
00042         self.assertEqual('dxfx'.encode(codecname), b'dabcfabc')

Here is the call graph for this function:

Definition at line 49 of file test_charmapcodec.py.

00049 
00050     def test_maptoundefined(self):
00051         self.assertRaises(UnicodeError, str, b'abc\001', codecname)

Here is the call graph for this function:


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