def test_pad_with_interpolation(self): t = TimeSeries(range(0, 5, 2), range(0, 5, 2), interpolate=True) t.pad(1) self.assertEqual(t.times, [0, 1, 2, 3, 4]) self.assertEqual(t.values, [0, 1, 2, 3, 4])
def test_pad(self): t = TimeSeries(range(0, 5, 2), range(0, 5, 2)) t.pad(1) self.assertEqual(t.times, [0, 1, 2, 3, 4]) self.assertEqual(t.values, [0, 0, 2, 2, 4])