Chapter 21.3. Mechanize
We had some good fun testing our controllers and database application using Nose, and we’ve taken advantage of testutil. So far, all our tests took place directly on the server.
It’s time to get out into the world. In real life, sometimes you also need to test your application from the client-side. This is necessary for several reasons, even if you pedantically hand-test the output from every controller method with every conceivable combination of application state and input arguments. You still need to test your deployment story and make sure that your application is available from a different machine or, better yet, from outside the firewall. You also want to make sure that the application spits out a proper mix ...
Get Rapid Web Applications with TurboGears: Using Python to Create Ajax-Powered Sites now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.