Checks to see if two cmddnodes are the same.
  Two cmdnodes are defined to be the same if they have the same callbacks/
  helptexts/summaries.

def _are_cmd_nodes_same(node1, node2):
  """ 
  Checks to see if two cmddnodes are the same.
  Two cmdnodes are defined to be the same if they have the same callbacks/
  helptexts/summaries. 
  """

  # Everything in node1 should be in node2
  for propertytype in node1:
    if (not propertytype in node2 or
        node1[propertytype] != node2[propertytype]):
      return False
  return True