parameters: (self, suboption)
docstring: \
          Check an incoming subnegotiation block. The parameter already has
          cut off the header like sub option number and com port option value.
docstring_summary: \
          Check an incoming subnegotiation block. The parameter already has
          cut off the header like sub option number and com port option value.
docstring_tokens: \ Check an incoming subnegotiation block . The parameter already has cut off the header like sub option number and com port option value .
function: def check_answer(self, suboption):
          """\
          Check an incoming subnegotiation block. The parameter already has
          cut off the header like sub option number and com port option value.
          """
          if self.value == suboption[:len(self.value)]:
              self.state = ACTIVE
          else:
              # error propagation done in is_ready
              self.state = REALLY_INACTIVE
          if self.connection.logger:
              self.connection.logger.debug("SB Answer {} -> {!r} -> {}".format(self.name, suboption, self.state))
function_tokens: def check_answer ( self , suboption ) : if self . value == suboption [ : len ( self . value ) ] : self . state = ACTIVE else : # error propagation done in is_ready self . state = REALLY_INACTIVE if self . connection . logger : self . connection . logger . debug ( "SB Answer {} -> {!r} -> {}" . format ( self . name , suboption , self . state ) )