def test_apply_namedtuple(self): def echoxy(p): return p.y, p.x view = self.client[-1] tup = view.apply_sync(echoxy, point(1, 2)) self.assertEqual(tup, (2, 1))
def test_apply_namedtuple(self): def echoxy(p): return p.y, p.x view = self.client[-1] tup = view.apply_sync(echoxy, point(1, 2)) self.assertEqual(tup, (2,1))
def namedtuplify(x, y): from ipython_parallel.tests.test_view import point return point(x, y)