<filename>tests/test_event.py
from aiomessaging.event import Event


def test_simple():
    e1 = Event('echo')
    e2 = Event.from_dict({'type': 'echo'})
    assert e1.type == e2.type


def test_to_dict():
    e = Event('echo')
    e.to_dict()

<filename>tests/test_event.py
from aiomessaging.event import Event


def test_simple():
    e1 = Event('echo')
    e2 = Event.from_dict({'type': 'echo'})
    assert e1.type == e2.type


def test_to_dict():
    e = Event('echo')
    e.to_dict()
