def test_pop_and_ordering_again(self): s = LimitedSet(maxlen=5) for i in range(10): s.add(i) j = -1 for _ in range(5): i = s.pop() self.assertLess(j, i) i = s.pop() self.assertEqual(i, None)