From 6036c862b76ed0bcafeb46f813399ceb26e3f00a 2012-06-12 03:06:00 From: MinRK Date: 2012-06-12 03:06:00 Subject: [PATCH] add a few pxconfig tests --- diff --git a/IPython/parallel/tests/test_magics.py b/IPython/parallel/tests/test_magics.py index 5d2d686..52accc8 100644 --- a/IPython/parallel/tests/test_magics.py +++ b/IPython/parallel/tests/test_magics.py @@ -337,6 +337,12 @@ class TestParallelMagics(ClusterTestCase, ParametricTestCase): self.assertEquals(v.targets, rc.ids[-1]) ip.magic("%pxconfig_tst -t :") self.assertEquals(v.targets, rc.ids) + ip.magic("%pxconfig_tst -t ::2") + self.assertEquals(v.targets, rc.ids[::2]) + ip.magic("%pxconfig_tst -t 1::2") + self.assertEquals(v.targets, rc.ids[1::2]) + ip.magic("%pxconfig_tst -t 1") + self.assertEquals(v.targets, 1) ip.magic("%pxconfig_tst --block") self.assertEquals(v.block, True) ip.magic("%pxconfig_tst --noblock")