// 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