diff --git a/test-tc.py b/test-tc.py index 4351ae8..863e699 100755 --- a/test-tc.py +++ b/test-tc.py @@ -2,7 +2,7 @@ # Copyright (c) 2003-2004 TundraWare Inc. All Rights Reserved. PROGNAME = "tconfpy Test Driver" -RCSID = "$Id: test-tc.py,v 1.108 2004/03/13 01:01:44 tundra Exp $" +RCSID = "$Id: test-tc.py,v 1.109 2004/03/14 01:21:14 tundra Exp $" VERSION = RCSID.split()[2] # Copyright Information @@ -28,10 +28,15 @@ print name print len(name) * '=' + '\n' - for val in data: + items = data + if isdict: + items = data.keys() + items.sort() + + for val in items: if isdict: - print val + (15-len(val)) * " " + data[val] + print val + (15-len(val)) * " " + str(data[val]) else: print val @@ -50,6 +55,12 @@ files = 1 DEBUG = False +symtbl = {"foo" : ["val1", False, True, "s", None, None, None, None], + "baz" : [3, False, True, "i", None, None, None, None] + } + +#symtbl = {} + if len(sys.argv) < 2: print BANNER print "Usage: test-tc.py [debug] file file ..." @@ -61,7 +72,7 @@ for fn in sys.argv[files:]: - retval = tconfpy.ParseConfig(fn, {}, debug=DEBUG) + retval = tconfpy.ParseConfig(fn, symtbl, debug=DEBUG) if retval[1]: print "Errors Were Found In '%s'!" % fn