Summary

This chapter advocated the usage of TDD and provided more information on:

  • unittest pitfalls
  • Third-party tools: nose and py.test
  • How to build fakes and mocks
  • Documentation-driven development

Since we already know how to build, package, and test software, in the next two chapters we will focus on ways to find performance bottlenecks and optimize your programs.

Get Expert Python Programming - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.