Back to index

python3.2  3.2.2
Public Member Functions
test.test_msilib.Test_make_id Class Reference

List of all members.

Public Member Functions

def test_is_no_change_required
def test_invalid_first_char
def test_invalid_any_char

Detailed Description

The Identifier data type is a text string. Identifiers may contain the
ASCII characters A-Z (a-z), digits, underscores (_), or periods (.).
However, every identifier must begin with either a letter or an
underscore.

Definition at line 7 of file test_msilib.py.


Member Function Documentation

Definition at line 35 of file test_msilib.py.

00035 
00036     def test_invalid_any_char(self):
00037         self.assertEqual(
00038             msilib.make_id(".s\x82ort"), "_.s_ort")
00039         self.assertEqual    (
00040             msilib.make_id(".s\x82o?*+rt"), "_.s_o___rt")
00041 

Here is the call graph for this function:

Definition at line 29 of file test_msilib.py.

00029 
00030     def test_invalid_first_char(self):
00031         self.assertEqual(
00032             msilib.make_id("9.short"), "_9.short")
00033         self.assertEqual(
00034             msilib.make_id(".short"), "_.short")

Here is the call graph for this function:

Definition at line 15 of file test_msilib.py.

00015 
00016     def test_is_no_change_required(self):
00017         self.assertEqual(
00018             msilib.make_id("short"), "short")
00019         self.assertEqual(
00020             msilib.make_id("nochangerequired"), "nochangerequired")
00021         self.assertEqual(
00022             msilib.make_id("one.dot"), "one.dot")
00023         self.assertEqual(
00024             msilib.make_id("_"), "_")
00025         self.assertEqual(
00026             msilib.make_id("a"), "a")
00027         #self.assertEqual(
00028         #    msilib.make_id(""), "")

Here is the call graph for this function:


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