Commit b7dc9176 authored by Chris McDonough's avatar Chris McDonough

Added simple test for ZClass conflict resolution avoidance.

parent 6386fe02
...@@ -85,6 +85,10 @@ class ConflictResolvingStorage: ...@@ -85,6 +85,10 @@ class ConflictResolvingStorage:
self._dostoreNP, self._dostoreNP,
oid, revid=revid1, data=zodb_pickle(obj)) oid, revid=revid1, data=zodb_pickle(obj))
def checkZClassesArentResolved(self):
from ZODB.ConflictResolution import bad_class
dummy_class_tuple = ('*foobar', ())
assert bad_class(dummy_class_tuple) == 1
def checkBuggyResolve1(self): def checkBuggyResolve1(self):
obj = PCounter3() obj = PCounter3()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment