Pro tips for writing great unit tests - Raymond Hettinger
Pro tips for writing great unit tests - PyCon Italia 2022 There is an art to condensing test concepts into readable, fast, clear predicates. We look at many examples and show how they can be improve Master the use of any() and all() with generator expressions. Expression set() relations to express big ideas clearly. Cover the problem space with combinatoric iterators: product(), combinations(), permutations() Use subtests for clear error reporting Factor-out data acquisition and parsing from the test predicates. Learn patterns for testing edge cases. Cover class based technique for test reuse. Make effective use of setup and teardown. We look at many examples and show how they can be improved Treating TDD test cases and bug test cases with special reverence. Speaker: Raymond Hettinger

Raymond Hettinger, Keynote on Concurrency, PyBay 2017

Modern Dictionaries by Raymond Hettinger

To trust or to test?: Automated testing of scientific projects with pytest - PyCon 2019

Structural Pattern Matching in the Real World - Raymond Hettinger

Back to Basics: Unit Testing in C++ - Dave Steffen - CppCon 2024

Raymond Hettinger, "Being a Core Developer in Python", PyBay2016

The Mental Game of Python - Raymond Hettinger

Keynote - Preventing, Finding, and Fixing Bugs On a Time Budget | Raymond Hettinger @ PyBay2018

Raymond Hettinger - Learning From Games and Puzzles - 4th Annual SF Python Holiday Party

Keynote

10 Lists

Thinking about Concurrency, Raymond Hettinger, Python core developer

Frontend Ruby on Rails with Glimmer DSL for Web — Andy Maleh | RubyConf Austria 2026
![The Mental Game of Python - Raymond Hettinger [synced version]](https://i.ytimg.com/vi/Uwuv05aZ6ug/hqdefault.jpg?sqp=-oaymwEnCNACELwBSFryq4qpAxkIARUAAAAAGAElAADIQj0AgKJDeAG4AvMY&rs=AOn4CLB7zwabnW9yCnjCcKbEkQMkhqwgKA&usqp=CCY)
The Mental Game of Python - Raymond Hettinger [synced version]

"See CPython run: Getting to know your Python interpreter" - James Bennett (North Bay Python 2019)

When Python Practices Go Wrong - Brandon Rhodes - code::dive 2019

Raymond Hettinger - Super considered super! - PyCon 2015

Raymond Hettinger - Modern solvers: Problems well-defined are problems solved - PyCon 2019

Michael Tom-Wing, Christie Wilson - Introduction to Unit Testing in Python with Pytest - PyCon 2016

