Python Testing with unittest, nose, pytest by Brian Okken
Читать

Python Testing with unittest, nose, pytest by Brian Okken

Learning your test framework should not be the hard part of testing. Quickly get up to speed with unittest, nose, and pytest. This book starts with unittest, the xUnit style testing framework that is included as a standard library in Python. I walk through writing tests and running them, including a comprehensive look at unittest fixtures (setup and teardown at multiple levels).