Esempio n. 1
0
def test_event_container():
    container = EventContainer('test', {})
    container.set_owner('testowner')
    container.set_fingerprint('testfp')
    container.set_metadata({'a': 'b'})

    record = container.get_record()
    assert record.owner == 'testowner'
    assert record.fingerprint == 'testfp'
    assert 'a' in record.event_metadata
Esempio n. 2
0
def test_event_container():
    container = EventContainer("test", {})
    container.set_owner("testowner")
    container.set_fingerprint("testfp")
    container.set_metadata({"a": "b"})

    record = container.get_record()
    assert record.owner == "testowner"
    assert record.fingerprint == "testfp"
    assert "a" in record.event_metadata