Commit 8fa3d858 authored by Nicolas Wavrant's avatar Nicolas Wavrant

tests: add __contains__ support in Sequence instances

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