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