def METHOD_NAME(self):
    n = 100
    y_arr = np.random.randint(0, high=1000, size=n)
    x_arr = np.arange(0, n)
    points = np.array((x_arr, y_arr)).T
    dsrc = XYDataSource(np.zeros((n, 2), dtype=int),
                        points=points, overwrite=False)
    expected = np.array([(x_arr.min(), y_arr.min()),
                         (x_arr.max(), y_arr.max())])
    actual = dsrc.get_limits()
    assert_allclose(actual, expected)