def procMapTest(): print "-----procMapTest()-----" tmp = "print full map: " + repr(testMod.getMap()) print tmp print len(tmp) print "print \"key1\"" print testMod.getMap()["key1"] print "print keys" print testMod.getMap().keys() print "print values" print testMod.getMap().values() print "print items" print testMod.getMap().items() print "join" print [ "pair - %s=%s" % ( i, j ) for i, j in testMod.getMap().items() ]
def procStringTest(): print "s before join" s = u";".join([ "%s=%s" % ( i, j ) for i, j in testMod.getMap().items() ]) print "s after join = " + s print "s after split" print s.split(";") print "dir test" tmp = dir( s ) print tmp