Back to index

python3.2  3.2.2
Classes | Functions | Variables
test.test_charmapcodec Namespace Reference

Classes

class  CharmapCodecTest

Functions

def codec_search_function
def test_main

Variables

string codecname = 'testcodec'

Detailed Description

Python character mapping codec test

This uses the test codec in testcodec.py and thus also tests the
encodings package lookup scheme.

Written by Marc-Andre Lemburg (mal@lemburg.com).

(c) Copyright 2000 Guido van Rossum.

Function Documentation

Definition at line 17 of file test_charmapcodec.py.

00017 
00018 def codec_search_function(encoding):
00019     if encoding == 'testcodec':
00020         from test import testcodec
00021         return tuple(testcodec.getregentry())
00022     return None
00023 
00024 codecs.register(codec_search_function)
00025 
# test codec's name (see test/testcodec.py)

Definition at line 52 of file test_charmapcodec.py.

00052 
00053 def test_main():
00054     test.support.run_unittest(CharmapCodecTest)

Here is the call graph for this function:


Variable Documentation

Definition at line 26 of file test_charmapcodec.py.