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: 4

Non-data size: 3

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: sahana/eden
Commit Name: d0903ca75b41568aa95e232da936c09679d6bb5a
Time: 2019-07-09
Author: dominic@nursix.org
File Name: modules/unit_tests/s3/s3query.py
Class Name: URLQueryTests
Method Name: testParseURLQuery


Project Name: chartbeat-labs/textacy
Commit Name: 465e3da40350f30c2ef965b72531fb33666fa388
Time: 2019-03-20
Author: burtdewilde@gmail.com
File Name: tests/test_extract.py
Class Name:
Method Name: test_noun_chunks_min_freq


Project Name: scikit-learn-contrib/DESlib
Commit Name: ff5c7db82d429924fd88dfc9dd06935bfbb202cb
Time: 2017-12-13
Author: luiz.gh@gmail.com
File Name: pythonds/des/base.py
Class Name: DES
Method Name: __init__