def test_itertimes(self): x = TimeSeries([1, 2, 3, 4],[1, 4, 9, 16]) i = x.itertimes() nextt = next(i) self.assertTrue ( nextt == 1 ) nextt = next(i) self.assertTrue ( nextt == 2 ) self.assertTrue (nextt.dtype == np.int64)
def test_iteritems(self): t1 = TimeSeries([1, 2], [3, 4]) self.assertEqual(list(t1.itertimes()), [1, 2])
def test_iteritems(self): t1 = TimeSeries([1, 2], [3, 4]) self.assertEqual(list(t1.itertimes()),[1,2])