| |
---|
| | # test-tc.py - A Test Driver For The 'tconfpy' Configuration File Parser |
---|
| | # Copyright (c) 2003-2004 TundraWare Inc. All Rights Reserved. |
---|
| | |
---|
| | PROGNAME = "tconfpy Test Driver" |
---|
| | RCSID = "$Id: test-tc.py,v 1.132 2004/04/16 19:50:47 tundra Exp $" |
---|
| | RCSID = "$Id: test-tc.py,v 1.133 2004/04/17 19:31:04 tundra Exp $" |
---|
| | VERSION = RCSID.split()[2] |
---|
| | |
---|
| | # Copyright Information |
---|
| | |
---|
| |
---|
| | if LIMITNS: |
---|
| | |
---|
| | # Limit the number of namespaces the user can use |
---|
| | des = VarDescriptor() |
---|
| | des.Value = "NS0" # This is the initial namespace |
---|
| | des.LegalVals = [r"^NS.*", ] |
---|
| | des.Value = "" # This is the initial namespace |
---|
| | des.LegalVals = [r"^NS.*", ] # List of permitted namespace regexes |
---|
| | des.Min = 3 |
---|
| | des.Max = 8 |
---|
| | st["NAMESPACE"] = des |
---|
| | |
---|
| |
---|
| | |