-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Django 1.1 Testing and Debugging
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 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. Output from the latest development release as of January 2010 is what is shown in this section. The code included here was also tested with the official 0.9 release. Everything works using the older twill code, but the...
Change the font size
Change margin width
Change background colour