Beispiel #1
0
    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))
Beispiel #2
0
 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))
Beispiel #3
0
 def namedtuplify(x, y):
     from ipython_parallel.tests.test_view import point
     return point(x, y)
Beispiel #4
0
 def namedtuplify(x, y):
     from ipython_parallel.tests.test_view import point
     return point(x, y)