O'Reilly logo

Django 1.1 Testing and Debugging by Karen M. Tracey

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

The twill web browsing and testing tool

twill is a Python package that supports command-line interaction with web sites, primarily for testing purposes. Like the coverage and django_coverage packages, twill can be found on PyPI: http://pypi.python.org/pypi/twill. While twill offers a command-line tool for interactive use, the commands it provides are also available from a Python API, meaning it is possible to use twill from within a Django TestCase. When we do this, we essentially replace use of the Django test Client with an alternative twill implementation.

Note

Note that the latest official release of twill available on PyPI (0.9 at the time of this writing) is quite old. The latest development release is available at http://darcs.idyll.org/~t/projects/twill-latest.tar.gz ...

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