Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Unit test your websites with code that acts like a web browser.

Project Description

This release includes:

  • send correct newline in mimeEncode (thanks Ivan Kurmanov)
  • handle Max-Age set to 0 (thanks Matt Chisholm)

Webunit is a framework for unit testing websites:

  • Browser-like page fetching including fetching the images and stylesheets needed for a page and following redirects
  • Cookies stored and trackable (all automatically handled)
  • HTTP, HTTPS, GET, POST, basic auth all handled, control over expected status codes, …
  • DOM parsing of pages to retrieve and analyse structure, including simple form re-posting
  • Two-line page-fetch followed by form-submit possible, with error checking
  • Ability to register error page content across multiple tests
  • Uses python’s standard unittest module as the underlying framework
  • May also be used to regression-test sites, or ensure their ongoing operation once in production (testing login processes work, etc.)
Release History

Release History

This version
History Node


History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
webunit-1.3.10.tar.gz (23.1 kB) Copy SHA256 Checksum SHA256 Source May 5, 2010

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting