class TestNodeEvent(unittest.TestCase): def setUp(self): self.node_event = NodeEvent("testing") def test_message_member(self): assert hasattr(self.node_event, "_message") def test_serialize(self): # TODO Get these numbers programmatically assert len(self.node_event.serialize()) == 106 assert type(self.node_event.serialize()) == str
def setUp(self): self.node_event = NodeEvent("testing")