code: def accept(self, code):
          
  
          if code in self.codes:
              return not self.reject
          return self.reject
docs: Determine whether to accept the given code.
  
          :param code: The response code.
  
          :returns: True if the code should be accepted, False
                    otherwise.