def test_series_sort_index(nelem, asc): np.random.seed(0) sr = Series(100 * np.random.random(nelem)) psr = sr.to_pandas() expected = psr.sort_index(ascending=asc) got = sr.sort_index(ascending=asc) assert_eq(expected, got)