def test_small_2(self): ss = StreamSampler(5) ss.append_all(range(5)) self.assertEqual(list(ss), list(range(5)))