In mechanize we can set proxy like this:
br = mechanize.Browser()
br.set_proxies({"http": "joe:password@myproxy.example.com:3128",
"ftp": "proxy.example.com",})
How do we do the same for zope.testbrowser?
Many thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
zope.testbrowseris a wrapper around mechanize, and you can reach the wrapped mechanize browser via themech_browserattribute:Not tested, but the above should work.