Skip navigation.

Python unit testing part 1: the unittest module

Python unit testing part 1: the unittest module

python | unit testing
Python developers who are serious about testing their code are fortunate to have a choice between at least three unit test frameworks: unittest, doctest and py.test. I'll discuss these frameworks and I'll focus on features such as availability, ease of use, API complexity, test execution customization, test fixture management, test reuse and organization, assertion syntax, dealing with exceptions. This post is the first in a series of three. It discusses the unittest module.

Author: Grig Georghiu
Published: January 27, 2005