def testEventCreate2(self): e = Event("EventTypeUri", "", None) assert e.getType() == "EventTypeUri", "testEventCreate2, getType" assert e.getSource() == "", "testEventCreate2, getSource" assert e.getPayload() == None, "testEventCreate2, getPayload"
def testEventCreate1(self): e = Event("EventTypeUri", "EventSourceUri", "payload") assert e.getType() == "EventTypeUri", "testEventCreate1, getType" assert e.getSource() == "EventSourceUri", "testEventCreate1, getSource" assert e.getPayload() == "payload", "testEventCreate1, getPayload"