def METHOD_NAME(client):
    """
    Checks if current phase is one of the phases in the phase list.
    """
    resp = client.get("/mxcube/api/v0.1/diffractometer/phaselist")
    data = json.loads(resp.data)
    phase_list = data["current_phase"]
    resp = client.get("/mxcube/api/v0.1/diffractometer/phase")
    data = json.loads(resp.data)
    phase = data["current_phase"]
    assert phase in phase_list