Chapter 4.2. Testing TurboGears Applications

So now we have a working page, and it was easy enough to make. But before we go on adding more and more functionality to our page, let’s take a quick break and look at how you write tests for TurboGears applications. It’s never too early to start writing tests. In fact, TurboGears is designed to suport Test Driven Development, in which you write your tests first, and code second.

We don’t have time to go over all the valuable information that has been written in support of writing unit and functional tests. If you’re not convinced already, we’re not going to force you to change the way you write code. For those who are convinced that writing tests early and often will save time on every change ...

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.