def test_bounds(): points = range(15) h = StreamHist(maxbins=8) h.update(points) assert h.bounds() == (0, 14) h = StreamHist() assert h.bounds() == (None, None)