def test_reshape_list_shapelets(shapelets, lengths, res_desired):
    """Test that the actual results are the expected ones."""
    res_actual = _reshape_list_shapelets(shapelets, lengths)
    assert len(res_actual) == len(res_desired)
    for arr_actual, arr_desired in zip(res_actual, res_desired):
        np.testing.assert_allclose(arr_actual, arr_desired, atol=1e-5, rtol=0.)
Test that the actual results are the expected ones.
pyts/classification/tests/test_learning_shapelets.py