def test_cut_segments():
    """
    """
    trajs = Trajectories(data.brownian_trajs_df())

    trajs.cut_segments((2, 3), inplace=True)

    new_indexes = [(0, 0), (0, 1), (0, 2), (0, 3), (0, 4), (1, 0), (1, 1),
                   (1, 2), (1, 3), (1, 4), (2, 0), (2, 1), (2, 2), (2, 3),
                   (2, 4), (3, 0), (3, 1), (3, 2), (3, 4), (3, 5), (4, 0),
                   (4, 1), (4, 2), (4, 4), (4, 5)]

    assert trajs.index.tolist() == new_indexes

    trajs = Trajectories(data.brownian_trajs_df())

    trajs = trajs.cut_segments((2, 3), inplace=False)

    new_indexes = [(0, 0), (0, 1), (0, 2), (0, 3), (0, 4), (1, 0), (1, 1),
                   (1, 2), (1, 3), (1, 4), (2, 0), (2, 1), (2, 2), (2, 3),
                   (2, 4), (3, 0), (3, 1), (3, 2), (3, 4), (3, 5), (4, 0),
                   (4, 1), (4, 2), (4, 4), (4, 5)]

    assert trajs.index.tolist() == new_indexes