Beispiel #1
0
def test_many_xml2dict():
    """ Testing to parse many XML messages """
    files = ('53791.xml', '53796.xml', '53927.xml')
    for item in files:
        print "\n"
        print "Parsing a UMM."
        print "=========================="
        file = LOCALPATH + item
        umm = xml2dict(file)
        pprint.pprint(umm)
Beispiel #2
0
def test_insert():
    """ Testing to insert a UMM to the db """
    file = LOCALPATH + '/53791.xml'
    umm = xml2dict(file)
    insert_one(umm)
Beispiel #3
0
def test_xml2dict():
    """ Testing to parse an XML-message """
    file = LOCALPATH + '53791.xml'
    umm = xml2dict(file)
    print '\n'
    pprint.pprint(umm)