def test_method_of_false_obj(self): from distributed.protocol import AbstractProtocol protocol = AbstractProtocol() lst = [] m = lst.append assert type(protocol.unwrap(protocol.wrap(m))) is type(m)
def test_protocol(self): from distributed.protocol import AbstractProtocol protocol = AbstractProtocol() for item in ("aaa", 3, u"aa", 344444444444444444L, 1.2, (1, "aa")): assert protocol.unwrap(protocol.wrap(item)) == item