22c0e3fabb291f8b7d7440cab3f79c5d5d04f2eb,test/test_search_cpe.py,,test_search_cpe,#Any#,11

Before Change



    // check if wordpress is matched in returned results; first and last
    assert "wordpress" in resultlist[0][41:].lower()
    assert "wordpress" in resultlist[-1][41:].lower()


def test_search_cpe_json(runner):

After Change



    // check if wordpress is matched in returned results; first, somewhere middle and somewhere last
    first_val = resultlist[0][41:].lower()
    middle_val = resultlist[int(len(resultlist) / 2)][41:].lower()
    last_val = resultlist[-3][41:].lower()

    assert "wordpress" in first_val
    assert "wordpress" in middle_val
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: cve-search/cve-search
Commit Name: 22c0e3fabb291f8b7d7440cab3f79c5d5d04f2eb
Time: 2020-09-24
Author: paul.tikken@gmail.com
File Name: test/test_search_cpe.py
Class Name:
Method Name: test_search_cpe


Project Name: sony/nnabla-examples
Commit Name: 48543004aa6f3b2fdff408be58fad410597bfbaa
Time: 2018-10-26
Author: Takuya.Narihira@jp.sony.com
File Name: object-detection/yolov2/yolov2_nnp.py
Class Name:
Method Name: get_args


Project Name: sony/nnabla-examples
Commit Name: 48543004aa6f3b2fdff408be58fad410597bfbaa
Time: 2018-10-26
Author: Takuya.Narihira@jp.sony.com
File Name: object-detection/yolov2/yolov2_detection.py
Class Name:
Method Name: get_args