def _qstat_output_has_job_details(soup, j_id):
    """
    Return True if j_id is a JB_job_number in soup that looks like:
    <detailed_job_info ...>
      <djob_info>
        <element>
          <JB_job_number>11693229</JB_job_number>
    """
    djobs = soup.find_all('djob_info')
    if len(djobs) != 1:
        return False

    numbers = djobs[0].find_all('jb_job_number')
    for number in numbers:
        if number.string == j_id:
            return True

    return False