def METHOD_NAME(self):
    new_array = arange(0, 40, 2).reshape(10, 2)
    with self.assertTraitChanges(
        self.data_source, "data_changed", count=1
    ):
        self.data_source.set_data(new_array)
    assert_array_equal(new_array, self.data_source._data)
    self.assertEqual(self.data_source.get_bounds(), (0, 38))
    self.assertEqual(self.data_source.sort_order, "ascending")