Exemple #1
0
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
Exemple #2
0
 def setUp(self):
     self.node_event = NodeEvent("testing")