def remove(self): s = OrderedSet() with Assert.raises(KeyError): s.remove(1) s.add(1) s.remove(1)
def discard(self): s = OrderedSet() s.discard(1) s.add(1) s.discard(1) Assert(1).not_in(s)
def add(self): s = OrderedSet() s.add(1) Assert(1).in_(s)