コード例 #1
0
 def test_demarshalling(self):
     original = (1, '1')
     message = str(Framing.SimpleFrame(*original))
     X = Framing.DeFramer()
     X.activate()
     X._deliver(message, "inbox")
     for i in xrange(
             20):  # More than sufficient cycles (should be lots less!)
         X.next()
     result = X._collect("outbox")
     self.assertEqual(original, result)
コード例 #2
0
 def test_smokeTest(self):
     X = Framing.DeFramer()
     X.activate()