Lines Matching refs:handlers
448 handlers = []
458 handlers.append(h)
460 return handlers
580 handlers = add_ordered_mock_handlers(o, meth_spec)
590 self.assertEqual(r, handlers[2])
591 calls = [(handlers[0], "http_open"), (handlers[2], "http_open")]
599 handlers = []
607 handlers.append(h)
612 self.assertEqual(o.calls[0][0], handlers[1])
613 self.assertEqual(o.calls[1][0], handlers[0])
622 handlers = add_ordered_mock_handlers(o, meth_spec)
626 self.assertEqual(o.calls, [(handlers[0], "http_open", (req,), {})])
639 handlers = add_ordered_mock_handlers(o, meth_spec)
643 calls = [(handlers[0], "http_open", (req,)),
644 (handlers[2], "http_error_302",
660 handlers = add_ordered_mock_handlers(o, meth_spec)
667 (handlers[0], "http_request"), (handlers[1], "http_request"),
668 (handlers[0], "http_response"), (handlers[1], "http_response")]
1356 handlers = add_ordered_mock_handlers(o, meth_spec)
1362 self.assertEqual([(handlers[0], "http_open")],
1398 handlers = add_ordered_mock_handlers(o, meth_spec)
1404 self.assertEqual([(handlers[0], "https_open")],
1745 for h in opener.handlers))