def test_process_parallel_failure(self): d = process_parallel([cb1, cb_fail, cb3], 'res', 'v1', 'v2') self.failUnlessFailure(d, TypeError) self.flushLoggedErrors() return d
def test_process_parallel(self): x = yield process_parallel([cb1, cb2, cb3], 'res', 'v1', 'v2') self.assertEqual(x, ['(cb1 res v1 v2)', '(cb2 res v1 v2)', '(cb3 res v1 v2)'])