def test_green(self): self.counter = 0 proc = GreenProcess(self.increment, 2) proc.start() self.assertEqual(self.counter, 0) proc.join() self.assertEqual(self.counter, 2)
def __init__(self, target=None, listener=None, name=None, *args, **kwargs): IonProcessBase.__init__(self, listener=listener, name=name) GreenProcess.__init__(self, target=target, *args, **kwargs)