Uni Graz logo

CMS 1

Testing — systematic search for errors

Gerald Senarclens de Grancy <cms@senarclens.eu>

Terminology

Exceptions

Certitude is not the test of certainty. We have been cocksure of many things that were not so.
– Oliver Wendell Holmes, Jr.

Whenever you are tempted to type something into a print statement or a debugger expression, write it as a test instead.
– Martin Fowler

Python's Unittest Framework

Homework and Required Reading

  1. Read Python's Functional Programming HOWTO
  2. Work on the 7th homework

Summary

Questions
and feedback...

Further Reading

Mark Pilgrim Dive Into Python 3 (2nd edition) Apress (October 23, 2009)
Python Software Foundation Python Documentation http://docs.python.org/py3k/