Exemplo n.º 1
0
 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
Exemplo n.º 2
0
 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)
Exemplo n.º 3
0
 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
Exemplo n.º 4
0
 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)
Exemplo n.º 5
0
 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