This is some code I wrote for a talk I gave on testing at SF Python