Commit 4e805af3 authored by Jérome Perrin's avatar Jérome Perrin

dms: make test failures a bit more readable

- compare references not uids
- set self.maxDiff=None to see full diff
parent 5b93b30f
......@@ -1642,13 +1642,15 @@ return True
)
page.publish()
self.tic()
# Test part
self.maxDiff = None
successor_list = self.portal.web_site_module.test\
.restrictedTraverse("P-WP-implicit.successor.value.list.test")\
.getImplicitSuccessorValueList()
self.assertEqual(
sorted([s.getUid() for s in successor_list]),
sorted([i.getUid() for i in img_list]),
sorted([s.getReference() for s in successor_list]),
sorted([i.getReference() for i in img_list]),
)
def checkWebSiteDocumentViewConsistency(self, portal_type, module_id="document_module"):
......
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