示例#1
0
 def testEventCreate2(self):
     e = Event("EventTypeUri", "", None)
     assert e.getType() == "EventTypeUri", "testEventCreate2, getType"
     assert e.getSource() == "", "testEventCreate2, getSource"
     assert e.getPayload() == None, "testEventCreate2, getPayload"
示例#2
0
 def testEventCreate2(self):
     e = Event("EventTypeUri", "", None)
     assert e.getType()    == "EventTypeUri",   "testEventCreate2, getType"
     assert e.getSource()  == "",               "testEventCreate2, getSource"
     assert e.getPayload() == None,             "testEventCreate2, getPayload"
示例#3
0
 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"
示例#4
0
 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"