Show More
@@ -309,6 +309,21 b' class TestView(ClusterTestCase, ParametricTestCase):' | |||||
309 | self.assertEqual(R2.shape, R.shape) |
|
309 | self.assertEqual(R2.shape, R.shape) | |
310 | assert_array_equal(R2, R) |
|
310 | assert_array_equal(R2, R) | |
311 |
|
311 | |||
|
312 | @skip_without('pandas') | |||
|
313 | def test_push_pull_timeseries(self): | |||
|
314 | """push/pull pandas.TimeSeries""" | |||
|
315 | import pandas | |||
|
316 | ||||
|
317 | ts = pandas.TimeSeries(range(10)) | |||
|
318 | ||||
|
319 | view = self.client[-1] | |||
|
320 | ||||
|
321 | view.push(dict(ts=ts), block=True) | |||
|
322 | rts = view['ts'] | |||
|
323 | ||||
|
324 | self.assertEqual(type(rts), type(ts)) | |||
|
325 | self.assertTrue((ts == rts).all()) | |||
|
326 | ||||
312 | def test_map(self): |
|
327 | def test_map(self): | |
313 | view = self.client[:] |
|
328 | view = self.client[:] | |
314 | def f(x): |
|
329 | def f(x): |
General Comments 0
You need to be logged in to leave comments.
Login now