Beispiel #1
0
 def test_pack_empty_struct(self):
     self.assertEqual({}, pubsub.unpack(pubsub.pack({})))
Beispiel #2
0
 def test_pack_none(self):
     self.assertEqual(None, pubsub.unpack(pubsub.pack(None)))
Beispiel #3
0
 def test_pack_empty_list(self):
     self.assertEqual([], pubsub.unpack(pubsub.pack([])))
Beispiel #4
0
 def test_pack(self):
     self.assertEqual(self.data_struct, pubsub.unpack(pubsub.pack(self.data_struct)))