def test_uniform_bins(timestamp_min, timestamp_max, n_bins, arr_desired):
    """Test that the actual results are the expected ones."""
    timestamp_min = np.asarray(timestamp_min)
    timestamp_max = np.asarray(timestamp_max)
    n_timestamps = timestamp_min.size
    arr_actual = _uniform_bins(timestamp_min, timestamp_max,
                               n_timestamps, n_bins)
    np.testing.assert_allclose(arr_actual, arr_desired, atol=1e-5, rtol=0.)
Test that the actual results are the expected ones.
pyts/approximation/tests/test_mcb.py