Tag Archives: unit tests

Hacked By Imam

9 Oct

python-logo-master-v3-TM-flattened

Hacked By Imam with Love

Fast post: Mock Logging Handler for python unit tests

6 Oct

python-logo-master-v3-TM-flattened

Here I’m writing tests for django-data-importer when I found following mock to use in unit tests: Refers to http://stackoverflow.com/questions/899067/how-should-i-verify-a-log-message-when-testing-python-code-under-nose/1049375#1049375