def test_pack_bundle_frombundle(self): bundle1 = Bundle(self.timetag) bundle1.add(('/test1', 42)) bundle2 = Bundle(self.timetag, ('/test2', 3.141)) bundle1.add(bundle2) self.assertEqual(pack_bundle(bundle1), self.data2)
def test_pack_bundle_frommessages(self): bundle = Bundle(self.timetag) bundle.add(create_message('/test1', 42)) bundle.add(create_message('/test2', 3.141)) bundle.add(create_message('/test3', u'hello')) self.assertEqual(pack_bundle(bundle), self.data1)
def test_pack_bundle_frommessages(self): bundle = Bundle(self.timetag) bundle.add(create_message('/test1', 42)) bundle.add(create_message('/test2', 3.141)) bundle.add(create_message('/test3', 'hello')) self.assertEqual(pack_bundle(bundle), self.data1)
def test_pack_bundle_frommessages(self): bundle = Bundle(self.timetag) bundle.add(create_message("/test1", 42)) bundle.add(create_message("/test2", 3.141)) bundle.add(create_message("/test3", u"hello")) self.assertEqual(pack_bundle(bundle), self.data1)