示例#1
0
        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()
示例#2
0
 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()
示例#3
0
 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()
示例#4
0
 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()