Twillsters,<br>Does anyone know if there is some way to introspect the debug output? Actually, let me back up. <br><br>I need to write a test in which I pretend to be a Googlebot and verify that I never see a redirect (response code 302). So far, there are two problems with my plan:<br>
1. code(302) always throws an assertion error, even when there IS a redirect, because twill doesn&#39;t run the assert until it stops getting redirected, at which point I&#39;ve got a 200<br>2. I can see the 302s by flipping on debug, but I can&#39;t figure out if there is some way to actually introspect the debug output without just running the test manually and watching things scroll by (which defeats the purpose of an automated test)<br>
<br>In my dream world, there is a secret option to make debug dump its output into a dict. In my slightly less perfect dream world, there is an option to make twill not follow redirects. Here in the real world, I&#39;m at a bit of a loss.<br>
<br>Thoughts?<br><br>Thanks in advance,<br>Pam<br><br>