Show More
@@ -308,6 +308,21 b' class TestView(ClusterTestCase, ParametricTestCase):' | |||||
308 | self.assertEqual(R2.dtype, R.dtype) |
|
308 | self.assertEqual(R2.dtype, R.dtype) | |
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 | ||||
|
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()) | |||
311 |
|
326 | |||
312 | def test_map(self): |
|
327 | def test_map(self): | |
313 | view = self.client[:] |
|
328 | view = self.client[:] |
General Comments 0
You need to be logged in to leave comments.
Login now