262f2dd76cd516d0be4a73e87e72a39938a18795,poseidon/poseidonStorage/test_poseidonStorage.py,,test_db_add_many_docs,#Any#,184

Before Change


    doc_two = {node_ip: "2.2.2.2", packet_lengths: [3, 5, 8]}
    doc_thr = {node_ip: "3.3.3.3", packet_lengths: [13, 21, 34]}
    doc_list = [doc_one, doc_two, doc_thr]
    doc_list = str(doc_list)
    doc_list = urllib.unquote(doc_list).encode("utf8")
    get_str = "/v1/storage/add_many_docs/poseidon_records/network_graph/" + doc_list
    resp = client.get(get_str)
    assert resp.status == falcon.HTTP_OK

After Change



    doc_list = [doc_one, doc_two, doc_thr]
    doc_str = ""
    for doc in doc_list:
        doc_str += bson.BSON.encode(doc)
    get_str = "/v1/storage/add_many_docs/poseidon_records/network_graph/" + doc_str
    resp = client.get(get_str)
    assert resp.status == falcon.HTTP_OK
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: CyberReboot/poseidon
Commit Name: 262f2dd76cd516d0be4a73e87e72a39938a18795
Time: 2016-08-10
Author: tlanham@cs.stanford.edu
File Name: poseidon/poseidonStorage/test_poseidonStorage.py
Class Name:
Method Name: test_db_add_many_docs


Project Name: home-assistant/home-assistant
Commit Name: 6477122b23d70666fa66035aff942692ea979aad
Time: 2016-07-02
Author: adam@armills.info
File Name: homeassistant/components/light/zwave.py
Class Name: ZwaveColorLight
Method Name: turn_on


Project Name: CyberReboot/poseidon
Commit Name: ec8602f95ff5916925c54a9adfc867112b2d5b70
Time: 2016-08-09
Author: tlanham@cs.stanford.edu
File Name: poseidon/poseidonStorage/test_poseidonStorage.py
Class Name:
Method Name: test_db_add_many_docs