<gh_stars>1-10
from eventualpy.messages import NewEvent


def test_compare_new_events():
    new_event1 = NewEvent("type")
    new_event2 = NewEvent("type")

    assert new_event1 != new_event2


def test_compare_new_events_with_same_id_different_type():
    new_event1 = NewEvent("typeA", id="non-unique-id")
    new_event2 = NewEvent("typeB", id="non-unique-id")

    assert new_event1 == new_event2

from eventualpy.messages import NewEvent


def test_compare_new_events():
    new_event1 = NewEvent("type")
    new_event2 = NewEvent("type")

    assert new_event1 != new_event2


def test_compare_new_events_with_same_id_different_type():
    new_event1 = NewEvent("typeA", id="non-unique-id")
    new_event2 = NewEvent("typeB", id="non-unique-id")

    assert new_event1 == new_event2