O'Reilly logo

Rapid Web Applications with TurboGears: Using Python to Create Ajax-Powered Sites by Gigi Sayfan, Kevin Dangoor, Mark Ramm

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required