Added an explicit initial namespace and several other legal ones for
testing AllowNewNamespaces.
1 parent 3aad603 commit 55eb5dd2dab8ef353d2e13d250f2027fbafeec1c
@tundra tundra authored on 7 Apr 2004
Showing 1 changed file
View
11
test-tc.py
# 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.128 2004/04/07 08:12:37 tundra Exp $"
RCSID = "$Id: test-tc.py,v 1.129 2004/04/07 08:32:50 tundra Exp $"
VERSION = RCSID.split()[2]
 
# Copyright Information
 
# And stuff them into the symbol table
symtbl["MyComplex1"] = mc1
symtbl["MyComplex2"] = mc2
 
# Just for fun, define an initial namespace and
# some other "legal" namespaces for use in testing
# the AllowNewNamespaces option of the API
 
des = VarDescriptor()
des.Value = "" # This is the initial namespace
des.LegalVals = ["NS1", "NS2"]
symtbl["NAMESPACE"] = des
 
 
#---------------------------------------------------------------------------#
# Nothing Else Should Need Changing Below Here
#---------------------------------------------------------------------------#