Example #1
0
 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)
Example #2
0
 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)
Example #3
0
 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)
Example #4
0
 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)
Example #5
0
 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)