Commit 2d3e3642 authored by Nicolas Wavrant's avatar Nicolas Wavrant Committed by Cédric Le Ninivin

tests: add __contains__ support in Sequence instances

parent 5f434793
......@@ -104,6 +104,9 @@ class Sequence:
def __setitem__(self, key, value):
self._dict[key] = value
def __contains__(self, key):
return key in self._dict
def asText(self):
"""
Representation of the current Sequence. Useful for debuggers.
......
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