def test_pack_empty_struct(self): self.assertEqual({}, pubsub.unpack(pubsub.pack({})))
def test_pack_none(self): self.assertEqual(None, pubsub.unpack(pubsub.pack(None)))
def test_pack_empty_list(self): self.assertEqual([], pubsub.unpack(pubsub.pack([])))
def test_pack(self): self.assertEqual(self.data_struct, pubsub.unpack(pubsub.pack(self.data_struct)))