Commit b36f529f authored by Hanno Schlichting's avatar Hanno Schlichting

Simplify an assert

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