def METHOD_NAME(self, b_output):
    ''' checks if the expected password prompt exists in b_output '''
    if self.prompt:
        b_prompt = to_bytes(self.prompt).strip()
        return any(l.strip().startswith(b_prompt) for l in b_output.splitlines())
    return False