Commit 117247a9 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

ui_dump_test: Fix initialisation of virtual id thanks @jm

parent 9c1fab2a
...@@ -33,6 +33,7 @@ from AccessControl.SecurityManagement \ ...@@ -33,6 +33,7 @@ from AccessControl.SecurityManagement \
import getSecurityManager, setSecurityManager import getSecurityManager, setSecurityManager
from Products.DCWorkflow.DCWorkflow import Unauthorized from Products.DCWorkflow.DCWorkflow import Unauthorized
from Testing import ZopeTestCase from Testing import ZopeTestCase
from zLOG import LOG
class ui_dump_test(object): class ui_dump_test(object):
...@@ -147,7 +148,7 @@ class ui_dump_test(object): ...@@ -147,7 +148,7 @@ class ui_dump_test(object):
else: else:
assert not raise_if_new, "Tracking a subobject of a new and" \ assert not raise_if_new, "Tracking a subobject of a new and" \
" untracked object produces unstable dumps." " untracked object produces unstable dumps."
self.last_id_dict[container] += 1 self.last_id_dict[container] = virtual_id + 1
self.virtual_path_dict[path] = virtual_path = container + (virtual_id,) self.virtual_path_dict[path] = virtual_path = container + (virtual_id,)
return virtual_path return virtual_path
......
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