def test_json_to_xmlrpc_1():
    xmlrpc = serialize.json_to_xmlrpc(ex.D_JSON_1)
    assert xmlrpc == ex.D_JSON_1_AS_XMLRPC
    #
    jsn = serialize.xmlrpc_to_json(xmlrpc)
    assert jsn == ex.D_JSON_1
    #
    fat_jsn = serialize.xml_to_json(xmlrpc)
    assert fat_jsn != ex.D_JSON_1
Exemple #2
0
def test_json_to_xmlrpc_1():
    xmlrpc = serialize.json_to_xmlrpc(ex.D_JSON_1)
    assert xmlrpc == ex.D_JSON_1_AS_XMLRPC
    #
    jsn = serialize.xmlrpc_to_json(xmlrpc)
    assert jsn == ex.D_JSON_1
    #
    fat_jsn = serialize.xml_to_json(xmlrpc)
    assert fat_jsn != ex.D_JSON_1
def test_xml_to_json():
    res = serialize.xml_to_json(ex.C_XML_1)
    assert res == ex.C_XML_1_AS_JSON
Exemple #4
0
def test_xml_to_json():
    res = serialize.xml_to_json(ex.C_XML_1)
    assert res == ex.C_XML_1_AS_JSON