This talk examines some common, simple patterns in code and the testing patterns that go with them. We’ll also discover what makes some code more testable than others, and how mocks and fakes can help isolate the code to be tested (and why you want to do that). Finally, we’ll touch on some tools to help make writing and running tests easier.
Video Producer: US Pycon Conference
Session presentation: https://us.pycon.org/2012/schedule/presentation/336/