Chapter 21.5. Summary

  • The Nose testing framework makes it easy to define test functions, test classes, and even doctests and run them every time you make a change.

  • TurboGears provides a number of utilities that make unit and functional testing with Nose even easier. testutil and the DBTest class make it easy to run tests against an in-memory SQLite database or any other test database you’ve got set up.

  • Python’s Mechanize module makes it easy to script a simulated browser session. This is helpful to make sure that everything is working or that CherryPy filters are being applied correctly. You can also use Mechanize to run scripted tests against your production server that will tell you if anything bad is happening.

  • Selenium allows you to run ...

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.