def test_contains(self):
        prio_set_list = event._PrioritizedSetList()
        obj = object()

        prio_set_list.add(0, obj)
        assert obj in prio_set_list
def serialize(self, value, display=False):
        if value is not None and display:
            return "********"
        return super().serialize(value, display)