def pool_callback2(response, error): assert len(response) == 1 test_shunt.register_called('pool2') if test_shunt.is_called('pool1'): # don't expect 2 finishes second tornado.ioloop.IOLoop.instance().stop()
def pool_callback(response, error): assert len(response) == 1 test_shunt.register_called('pool1') if test_shunt.is_called('pool2'): tornado.ioloop.IOLoop.instance().stop()