def can_be_pickled(self): c = Context() c.foo = {"bar": {"biz": ["baz", "buzz"]}} c2 = pickle.loads(pickle.dumps(c)) assert c == c2 assert c is not c2 assert c.foo.bar.biz is not c2.foo.bar.biz
def can_be_pickled(self): c = Context() c.foo = {'bar': {'biz': ['baz', 'buzz']}} c2 = pickle.loads(pickle.dumps(c)) eq_(c, c2) ok_(c is not c2) ok_(c.foo.bar.biz is not c2.foo.bar.biz)
def can_be_pickled(self): c = Context() c.foo = {'bar': {'biz': ['baz', 'buzz']}} c2 = pickle.loads(pickle.dumps(c)) assert c == c2 assert c is not c2 assert c.foo.bar.biz is not c2.foo.bar.biz