code: function(cell, portId) {
      console.assert(cell.isVisible());
      console.assert(!cell.portProp(portId, 'collapsed'), 'port ' + portId + ' on ' + cell.id + ' should be  expanded');
  
  }
docs: Simple unit testing