Ejemplo n.º 1
0
 def test_event_malformed(self):
     """Testing Event: malformed event"""
     with self.assertRaises(ValueError):
         Event.from_dump("E|0")
Ejemplo n.º 2
0
 def test_event_malformed(self):
     """Testing Event: malformed event"""
     with self.assertRaises(ValueError):
         Event.from_dump("E|0")
Ejemplo n.º 3
0
 def test_event_dump(self):
     """Testing Event: from_dump()"""
     event = Event.from_dump("E|0|test|example|2|message")
     assert event.dump() == "E|0|test|example|2|message" == repr(event)
Ejemplo n.º 4
0
 def test_event_dump(self):
     """Testing Event: from_dump()"""
     event = Event.from_dump("E|0|test|example|2|message")
     assert event.dump() == "E|0|test|example|2|message" == repr(event)