Commit b36f529f authored by Hanno Schlichting's avatar Hanno Schlichting

Simplify an assert

parent fa61a59b
......@@ -65,8 +65,7 @@ class DummyCatalog(Acquisition.Implicit):
# This is sooooo ugly
def unrestrictedTraverse(self, path, default=None):
# for these tests...
assert path == '' or path == ('') or path == [''], path
assert path in ['', ('', ), ['']], path
return self
def restrictedTraverse(self, path, default=_marker):
......
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