Пример #1
0
    def test_ensure_ready(self):
        # GreenProcess by default will signal ready immediately, but we can still pass it through to make sure it's ok
        sup = GreenProcessSupervisor()
        sup.start()

        proc = sup.spawn(('green', self.increment), amount=5)
        sup.ensure_ready(proc)

        self.assertEqual(self.counter, 5)