def fail_status(job_data, token):
    """ Return a reference to the first job of the specified type. """
    output = '<font style="color: #%s;">%s</font>'
    if ['Failed', 'BuildFail', 'TestFail'] in job_data['status']:
        color = 'FF0000'
    elif job_data['status'] == 'Success':
        color = '00AA00'
    else:
        color = '000000'
    return output % (color, token)
dataset/ETHPy150Open openstack-infra/reviewday/reviewday/html_helper.py/fail_status/swapped operands of `in`