def testDistributed(self): l = [u"hello", op.ObjRef(2), 3] args = op.serialize_args(l) res = op.deserialize_args(args, testfunction.types) self.assertTrue(res == l)
def testArgs(self): l = 200 * [op.ObjRef(1)] + 50 * [1L] + 50 * [1.0] + 50 * [u"hi"] t = 200 * [op.ObjRef] + 50 * [int] + 50 * [float] + 50 * [unicode] args = op.serialize_args(l) res = op.deserialize_args(args, t) self.assertTrue(res == l)