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

        prio_set_list.add(0, obj)
        assert obj in prio_set_list
def clear(self):
    for unused_ in range(len(self._items)):
      self.remove_item(self._items[0])