Пример #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))
Пример #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))
Пример #3
0
 def namedtuplify(x, y):
     from ipython_parallel.tests.test_view import point
     return point(x, y)
Пример #4
0
 def namedtuplify(x, y):
     from ipython_parallel.tests.test_view import point
     return point(x, y)