def METHOD_NAME():
    protocol = "testing"
    source_ip = "1.2.3.4"
    source_port = 11
    destination_ip = "5.6.7.8"
    destination_port = 22
    log_queue = LogQueueFake()
    session = AttackSession(
        protocol=protocol,
        source_ip=source_ip,
        source_port=source_port,
        destination_ip=destination_ip,
        destination_port=destination_port,
        log_queue=log_queue,
    )
    event = {"foo": "bar"}
    session.add_event(event)
    logged = log_queue.events[0]
    assert logged["data"] == event
    assert logged["data_type"] == protocol
    assert logged["src_ip"] == source_ip
    assert logged["src_port"] == source_port
    assert logged["remote"] == (source_ip, source_port)
    assert logged["dst_ip"] == destination_ip
    assert logged["dst_port"] == destination_port
    assert logged["local"] == (destination_ip, destination_port)
    # TODO should this even include public_ip if it's always None?
    assert logged["public_ip"] is None