Python Unit Testing: Injecting Exceptions with Mock and Nose
dechols.com