Ejemplo n.º 1
0
 def check_getstate(self):
     p=Persistent()
     assert p.__getstate__() == {}
     p.a = 1
     assert p.__getstate__() == {'a':1}
Ejemplo n.º 2
0
 def check_getstate(self):
     p=Persistent()
     assert p.__getstate__() == {}
     p.a = 1
     assert p.__getstate__() == {'a':1}