Back to index

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

Classes

class  RangeError
class  NormalizationTest

Functions

def check_version
def NFC
def NFKC
def NFD
def NFKD
def unistr
def test_main

Variables

string TESTDATAFILE = "NormalizationTest.txt"
string TESTDATAURL = "http://www.unicode.org/Public/"

Function Documentation

Definition at line 12 of file test_normalization.py.

00012 
00013 def check_version(testfile):
00014     hdr = testfile.readline()
00015     return unidata_version in hdr

Definition at line 19 of file test_normalization.py.

00019 
00020 def NFC(str):
00021     return normalize("NFC", str)

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 25 of file test_normalization.py.

00025 
00026 def NFD(str):
00027     return normalize("NFD", str)

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 22 of file test_normalization.py.

00022 
00023 def NFKC(str):
00024     return normalize("NFKC", str)

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 28 of file test_normalization.py.

00028 
00029 def NFKD(str):
00030     return normalize("NFKD", str)

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 100 of file test_normalization.py.

00100 
00101 def test_main():
00102     run_unittest(NormalizationTest)

Here is the call graph for this function:

Definition at line 31 of file test_normalization.py.

00031 
00032 def unistr(data):
00033     data = [int(x, 16) for x in data.split(" ")]
00034     for x in data:
00035         if x > sys.maxunicode:
00036             raise RangeError
00037     return "".join([chr(x) for x in data])

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

string test.test_normalization.TESTDATAFILE = "NormalizationTest.txt"

Definition at line 9 of file test_normalization.py.

string test.test_normalization.TESTDATAURL = "http://www.unicode.org/Public/"

Definition at line 10 of file test_normalization.py.