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)
def test_smokeTest(self): X = Framing.DeFramer() X.activate()