def METHOD_NAME(self):
    table = Table(data)
    port_ids = []
    for i in range(10):
        port_ids.append(table.make_port())
    assert port_ids == list(range(1, 11))
    view = table.view()
    ports_to_update = [random.randint(0, 10) for i in range(5)]
    def callback(port_id):
        assert port_id in ports_to_update
    view.on_update(callback)
    for port in ports_to_update:
        table.update(data, port_id=port)