def test_copy(): h1 = StreamHist() h2 = h1.copy() assert h1.bins == h2.bins h1.update(make_normal(1000)) assert h1.bins != h2.bins h2 = h1.copy() assert h1.bins == h2.bins h1 = StreamHist().update([p for p in range(4)]) h2 = h1.copy() assert h1.to_dict() == h2.to_dict()