parameters: (expected, actual, name, replyf=None)
docstring: If expected is not None, checks whether expected equals actual,
      and if not, raises an exception (see code for themessage).
      If replyf is None, the exception is an UnpackException.
      Otherwise, reply must be a function that takes no arguments
      and returns an RPC reply (a string), and the exception is a
      ReplyException containing the output of the function.
docstring_summary: If expected is not None, checks whether expected equals actual,
      and if not, raises an exception (see code for themessage).
      If replyf is None, the exception is an UnpackException.
      Otherwise, reply must be a function that takes no arguments
      and returns an RPC reply (a string), and the exception is a
      ReplyException containing the output of the function.
docstring_tokens: If expected is not None checks whether expected equals actual and if not raises an exception ( see code for themessage ) . If replyf is None the exception is an UnpackException . Otherwise reply must be a function that takes no arguments and returns an RPC reply ( a string ) and the exception is a ReplyException containing the output of the function .
function: def check(expected, actual, name, replyf=None):
      """If expected is not None, checks whether expected equals actual,
      and if not, raises an exception (see code for themessage).
      If replyf is None, the exception is an UnpackException.
      Otherwise, reply must be a function that takes no arguments
      and returns an RPC reply (a string), and the exception is a
      ReplyException containing the output of the function.
      """
      if expected is not None and expected != actual:
          if replyf:
              raise ReplyException("Expected %s %s, but got %s"
                                    % (name, expected, actual), replyf())
          else:
              raise UnpackException("Expected %s %s, but got %s"
                                    % (name, expected, actual))
function_tokens: def check ( expected , actual , name , replyf = None ) : if expected is not None and expected != actual : if replyf : raise ReplyException ( "Expected %s %s, but got %s" % ( name , expected , actual ) , replyf ( ) ) else : raise UnpackException ( "Expected %s %s, but got %s" % ( name , expected , actual ) )