Esempio n. 1
0
def main():
    d = testData.stgMetaXsdDict()
    doc = stgMetaXsd.createXML(d)

    s = doc.toprettyxml()
    print s
    #pprint.pprint( s ) # used to get text for testData.stgMetaXsdXml

    if s == testData.stgMetaXsdXml():
        print 'Passed'
    else:
        print 'Failed'
Esempio n. 2
0
def main():
	d = testData.stgMetaXsdDict()
	doc = stgMetaXsd.createXML( d )

	s = doc.toprettyxml()
	print s
	#pprint.pprint( s ) # used to get text for testData.stgMetaXsdXml

	if s == testData.stgMetaXsdXml():
		print 'Passed'
	else:
		print 'Failed'
Esempio n. 3
0
def main():
    dtd = testData.stgMetaDtdDict()
    xsd = convert.dtdDict2metaXsdDict(dtd)

    pprint.pprint(xsd)

    test = testData.stgMetaXsdDict()
    pprint.pprint(test)

    if test == xsd:
        print 'Passed'
    else:
        print 'Failed'
def main():
	dtd = testData.stgMetaDtdDict()
	xsd = convert.dtdDict2metaXsdDict( dtd )

	pprint.pprint( xsd )

	test = testData.stgMetaXsdDict()
	pprint.pprint( test )

	if test == xsd:
		print 'Passed'
	else:
		print 'Failed'