Py-webunit

Jul 20, 2023

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

Webunit is a framework for unit testing websites

Features in a nutshell

  1. Browser-like page fetching including fetching the images and stylesheets needed for a page and following redirects
  2. Cookies stored and trackable all automatically handled
  3. HTTP, HTTPS, GET, POST, basic auth all handled, control over expected status codes, …
  4. DOM parsing of pages to retrieve and analyse structure, including simple form re-posting
  5. Two-line page-fetch followed by form-submit possible, with error checking
  6. Ability to register error page content across multiple tests
  7. Uses python’s standard unittest module as the underlying framework


Checkout these related ports:
  • Zope213 - Object-based web application platform Version 2.13
  • Zola - Fast static site generator
  • Zgrab2 - Fast Go application scanner
  • Zerowait-httpd - Lightweight and fast http server
  • Zenphoto - Simpler web photo gallery
  • Zend-framework - Framework for developing PHP web applications
  • Yuicompressor - The Yahoo! JavaScript and CSS Compressor
  • Ytdl - YouTube downloader written in Go
  • Yt-dlp - Command-line program for downloading videos from various platforms
  • Youtube_dl - Program for downloading videos from various services
  • Yourls - Your Own URL Shortener
  • You-get - Dumb downloader that scrapes the web
  • Yaws - Web server for dynamic content written in Erlang
  • Yarr - Yet another rss reader
  • Yarn - Package manager for node, alternative to npm (meta port)