def testBlocking(self): import bitHopper.LongPoll as lp import gevent def trigger(): lp.wait() gevent.spawn(trigger) lp.trigger('Not used right now') gevent.sleep(0) self.assertTrue(True)
def trigger(): lp.wait()